From: Willy Tarreau Date: Thu, 24 Jan 2013 15:24:15 +0000 (+0100) Subject: CLEANUP: config: slowstart is never negative X-Git-Tag: v1.5-dev18~109 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3a3bbcd6f1fd3b5629ca1759104b0e58ad637dc0;p=thirdparty%2Fhaproxy.git 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 --- diff --git a/src/cfgparse.c b/src/cfgparse.c index dd89c9472b..5b8fc0697f 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -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; }