mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 23:27:04 +02:00
MINOR: config: correct errors about argument number in condition in cfgparse.c
Put the right number in condition that takes the wrong number of arguments. No backport needed, except if anonymization mechanism is backported.
This commit is contained in:
parent
1caa5351e5
commit
be5ed92d0a
@ -1963,10 +1963,10 @@ int readcfgfile(const char *file)
|
||||
else if (strcmp(args[0], "stats") == 0 && strcmp(args[1], "socket") == 0) {
|
||||
qfprintf(stdout, "%s %s ", args[0], args[1]);
|
||||
|
||||
if (arg > 1) {
|
||||
if (arg > 2) {
|
||||
qfprintf(stdout, "%s ", hash_ipanon(g_key, args[2], 1));
|
||||
|
||||
if (arg > 2) {
|
||||
if (arg > 3) {
|
||||
qfprintf(stdout, "[...]\n");
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user