[MINOR] config: off-by-one in "stick-table" after list of converters
diff --git a/src/cfgparse.c b/src/cfgparse.c
index 242ef82..84b99fe 100644
--- a/src/cfgparse.c
+++ b/src/cfgparse.c
@@ -2132,6 +2132,7 @@
err_code |= ERR_ALERT | ERR_FATAL;
goto out;
}
+ myidx++;
}
else if (strcmp(args[myidx], "expire") == 0) {
myidx++;
@@ -2149,9 +2150,11 @@
goto out;
}
curproxy->table.expire = val;
+ myidx++;
}
else if (strcmp(args[myidx], "nopurge") == 0) {
curproxy->table.nopurge = 1;
+ myidx++;
}
else if (strcmp(args[myidx], "type") == 0) {
myidx++;
@@ -2161,8 +2164,14 @@
err_code |= ERR_ALERT | ERR_FATAL;
goto out;
}
+ /* myidx already points to next arg */
+ }
+ else {
+ Alert("parsing [%s:%d] : stick-table: unknown argument '%s'.\n",
+ file, linenum, args[myidx]);
+ err_code |= ERR_ALERT | ERR_FATAL;
+ goto out;
}
- myidx++;
}
if (!curproxy->table.size) {