]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: tcpcheck: Remove unexpected flag on tcpcheck rules for httchck option
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 24 Mar 2026 13:55:01 +0000 (14:55 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 1 Apr 2026 14:34:37 +0000 (16:34 +0200)
When parsing httpchck option, a wrong flag (TCPCHK_SND_HTTP_FROM_OPT) was
set on the rules, while it is in fact a flag for a send rule. Let's remove
it. There is no issue here because there is no corresponding flag for
tcpcheck rules.

This patch must be backported to all stable versions.

src/tcpcheck.c

index cf64fe6d64d2091a3e00e949106aaf1b85c98e94..bf42de0559b3fae6fcdfc191f679033aae77cdcc 100644 (file)
@@ -5473,7 +5473,6 @@ int proxy_parse_httpchk_opt(char **args, int cur_arg, struct proxy *curpx, const
 
        free_tcpcheck_vars(&rules->preset_vars);
        rules->list = NULL;
-       rules->flags |= TCPCHK_SND_HTTP_FROM_OPT;
 
        /* Deduce the ruleset name from the proxy info */
        chunk_printf(&trash, "*http-check-%s_%s-%d",