From: Alan T. DeKok Date: Tue, 28 Feb 2017 18:11:46 +0000 (-0500) Subject: manually pull patch from v3.0.x X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd4e87b70c7b1ba23609f06dbc94a053a6414aec;p=thirdparty%2Ffreeradius-server.git manually pull patch from v3.0.x --- diff --git a/src/lib/inet.c b/src/lib/inet.c index a3a09dcb554..f60e2937d18 100644 --- a/src/lib/inet.c +++ b/src/lib/inet.c @@ -675,7 +675,7 @@ do_port: * input length indicates there are more than 5 chars * after the ':' then there's an issue. */ - if (inlen > ((q + sizeof(buffer)) - value)) { + if (len > (size_t) ((q + sizeof(buffer)) - value)) { error: fr_strerror_printf("IP string contains trailing garbage after port delimiter"); return -1;