From: Erwan Le Goas Date: Thu, 29 Sep 2022 08:30:00 +0000 (+0200) Subject: MINOR: config: correct errors about argument number in condition in cfgparse.c X-Git-Tag: v2.7-dev7~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=be5ed92d0a98c939503a1ee5211c265cd162e194;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/cfgparse.c b/src/cfgparse.c index e6a6d30de6..a2e86f518b 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -1963,10 +1963,10 @@ next_line: 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 {