]> git.kaiwu.me - haproxy.git/commitdiff
BUG/MEDIUM: tcpcheck: Add proxy used for healthcheck sections in proxies list
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 7 Jul 2026 17:21:04 +0000 (19:21 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 8 Jul 2026 06:52:06 +0000 (08:52 +0200)
The proxy used to parse healthcheck sections was not inserted in the proxies
list. So its initialization was not properly finalized. Among other things,
it was an issue for some arguments, like regular expressions.

This proxy is now inserted in the proxies list.

This patch should fix the issue #3440. It must be backported to 3.4.

src/tcpcheck.c

index c9142f43a4231cbad864af965255ed662e1a74d6..00b88f54a565c27fe54c58f87ff9fd57e739b669 100644 (file)
@@ -5742,6 +5742,8 @@ int cfg_parse_healthchecks(const char *file, int linenum, char **args, int kwm)
                                err_code |= ERR_ALERT | ERR_FATAL;
                                goto out;
                        }
+                       tcpchecks_proxy->next = proxies_list;
+                       proxies_list = tcpchecks_proxy;
                }
                tcpchecks_proxy->options2 &= ~PR_O2_CHK_ANY;
                tcpchecks_proxy->tcpcheck.flags = 0;