mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-11 06:43:42 -05:00
MINOR: init: verify that there is a single word on "-cc"
This adds the exact same restriction as commit 5546c8bdc ("MINOR:
cfgparse: Fail when encountering extra arguments in macro") but for
the "-cc" command line argument, for the sake of consistency.
This commit is contained in:
parent
79c52ec6b4
commit
7edc0fde05
1 changed files with 1 additions and 1 deletions
|
|
@ -1826,7 +1826,7 @@ static void init(int argc, char **argv)
|
|||
exit(2);
|
||||
}
|
||||
|
||||
if (err & PARSE_ERR_TOOMANY) {
|
||||
if ((err & PARSE_ERR_TOOMANY) || *args[1]) {
|
||||
ha_alert("Error in condition: Too many words.\n");
|
||||
exit(2);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue