From: Christopher Faulet Date: Fri, 3 Apr 2026 14:26:40 +0000 (+0200) Subject: MINOR: tcpcheck: Reject unknown keyword during parsing of healthcheck section X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=09c37fb6bdd3897f832ddcfe95824d1f3cf71a5a;p=thirdparty%2Fhaproxy.git MINOR: tcpcheck: Reject unknown keyword during parsing of healthcheck section unknown keyword was just ignored. it is not really handy to detect error. Now an error is reported and the parsing is aborted. --- diff --git a/src/tcpcheck.c b/src/tcpcheck.c index 3d0ad19ff..a53917747 100644 --- a/src/tcpcheck.c +++ b/src/tcpcheck.c @@ -5905,6 +5905,10 @@ int cfg_parse_healthchecks(const char *file, int linenum, char **args, int kwm) } goto out; } + else { + ha_alert("parsing [%s:%d] : unknown keyword '%s' in '%s' section\n", file, linenum, args[0], cursection); + err_code |= ERR_ALERT | ERR_ABORT; + } out: free(errmsg);