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:
Erwan Le Goas 2022-09-29 10:30:00 +02:00 committed by Christopher Faulet
parent 1caa5351e5
commit be5ed92d0a

View File

@ -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 {