mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-24 12:20:59 +01: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
@ -4275,12 +4275,6 @@ stats_error_parsing:
|
|||||||
err_code |= ERR_ALERT | ERR_FATAL;
|
err_code |= ERR_ALERT | ERR_FATAL;
|
||||||
goto out;
|
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;
|
newsrv->slowstart = (val + 999) / 1000;
|
||||||
cur_arg += 2;
|
cur_arg += 2;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user