mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-04-03 18:11:06 +02:00
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:
parent
6ed656d691
commit
09c37fb6bd
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user