]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: tcpcheck: Don't release ruleset when parsing 'spop-check' ruleset
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 23 Apr 2026 07:03:55 +0000 (09:03 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 23 Apr 2026 08:49:13 +0000 (10:49 +0200)
Ruleset are stored in a global tree, released on deinit staged. All errors
are fatal and abort the configuration parsing. So the current ruleset must
not be released here.

src/tcpcheck.c

index 105b4dc090b7109468363fa841fb556b64ae6578..65adbceeaa0bb0393503742dc171001d85fe52cf 100644 (file)
@@ -5162,7 +5162,6 @@ static int do_parse_spop_check_opt(char **args, int cur_arg, struct proxy *curpx
        return err_code;
 
   error:
-       free_tcpcheck_ruleset(rs);
        err_code |= ERR_ALERT | ERR_FATAL;
        goto out;
 }