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 e6a6d30..a2e86f5 100644
--- a/src/cfgparse.c
+++ b/src/cfgparse.c
@@ -1963,10 +1963,10 @@
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 {