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;
|
||||
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…
x
Reference in New Issue
Block a user