mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-10 11:32:50 +02: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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user