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.
This commit is contained in:
Christopher Faulet 2026-04-03 16:26:40 +02:00
parent 6ed656d691
commit 09c37fb6bd

View File

@ -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);