From be5ed92d0a98c939503a1ee5211c265cd162e194 Mon Sep 17 00:00:00 2001 From: Erwan Le Goas Date: Thu, 29 Sep 2022 10:30:00 +0200 Subject: [PATCH] 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. --- src/cfgparse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cfgparse.c b/src/cfgparse.c index e6a6d30de..a2e86f518 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -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 {