mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-10 07:49:54 +00:00
BUG/MEDIUM: config: Adding validation to stick-table expire value.
If the expire value exceedes the maximum value clients are not added to the stick table.
This commit is contained in:
parent
f3c7a83acc
commit
3b90f0a267
@ -3971,6 +3971,12 @@ int cfg_parse_listen(const char *file, int linenum, char **args, int kwm)
|
||||
err_code |= ERR_ALERT | ERR_FATAL;
|
||||
goto out;
|
||||
}
|
||||
if (val > INT_MAX) {
|
||||
Alert("parsing [%s:%d] : Expire value [%u]ms exceeds maxmimum value of 24.85 days.\n",
|
||||
file, linenum, val);
|
||||
err_code |= ERR_ALERT | ERR_FATAL;
|
||||
goto out;
|
||||
}
|
||||
curproxy->table.expire = val;
|
||||
myidx++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user