mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-31 06:37:50 -04:00
CLEANUP: config: slowstart is never negative
No need to check for a negative value in the "slowstart" argument, it's an unsigned. Reported-by: Dinko Korunic <dkorunic@reflected.net>
This commit is contained in:
parent
192e59fb07
commit
3a3bbcd6f1
1 changed files with 0 additions and 6 deletions
|
|
@ -4275,12 +4275,6 @@ stats_error_parsing:
|
|||
err_code |= ERR_ALERT | ERR_FATAL;
|
||||
goto out;
|
||||
}
|
||||
if (val < 0) {
|
||||
Alert("parsing [%s:%d]: invalid value %d for argument '%s' of server %s.\n",
|
||||
file, linenum, val, args[cur_arg], newsrv->id);
|
||||
err_code |= ERR_ALERT | ERR_FATAL;
|
||||
goto out;
|
||||
}
|
||||
newsrv->slowstart = (val + 999) / 1000;
|
||||
cur_arg += 2;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue