mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04: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
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Reference in a new issue