From 09c37fb6bdd3897f832ddcfe95824d1f3cf71a5a Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Fri, 3 Apr 2026 16:26:40 +0200 Subject: [PATCH] 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. --- src/tcpcheck.c | 4 ++++ 1 file changed, 4 insertions(+) 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);