mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-04-27 05:18:00 +00:00
[MINOR] config: off-by-one in "stick-table" after list of converters
This commit is contained in:
parent
d31d6eb89a
commit
0c55931696
@ -2132,6 +2132,7 @@ int cfg_parse_listen(const char *file, int linenum, char **args, int kwm)
|
|||||||
err_code |= ERR_ALERT | ERR_FATAL;
|
err_code |= ERR_ALERT | ERR_FATAL;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
myidx++;
|
||||||
}
|
}
|
||||||
else if (strcmp(args[myidx], "expire") == 0) {
|
else if (strcmp(args[myidx], "expire") == 0) {
|
||||||
myidx++;
|
myidx++;
|
||||||
@ -2149,9 +2150,11 @@ int cfg_parse_listen(const char *file, int linenum, char **args, int kwm)
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
curproxy->table.expire = val;
|
curproxy->table.expire = val;
|
||||||
|
myidx++;
|
||||||
}
|
}
|
||||||
else if (strcmp(args[myidx], "nopurge") == 0) {
|
else if (strcmp(args[myidx], "nopurge") == 0) {
|
||||||
curproxy->table.nopurge = 1;
|
curproxy->table.nopurge = 1;
|
||||||
|
myidx++;
|
||||||
}
|
}
|
||||||
else if (strcmp(args[myidx], "type") == 0) {
|
else if (strcmp(args[myidx], "type") == 0) {
|
||||||
myidx++;
|
myidx++;
|
||||||
@ -2161,8 +2164,14 @@ int cfg_parse_listen(const char *file, int linenum, char **args, int kwm)
|
|||||||
err_code |= ERR_ALERT | ERR_FATAL;
|
err_code |= ERR_ALERT | ERR_FATAL;
|
||||||
goto out;
|
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) {
|
if (!curproxy->table.size) {
|
||||||
|
Loading…
Reference in New Issue
Block a user