]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
manually pull patch from v3.0.x
authorAlan T. DeKok <aland@freeradius.org>
Tue, 28 Feb 2017 18:11:46 +0000 (13:11 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 28 Feb 2017 18:11:46 +0000 (13:11 -0500)
src/lib/inet.c

index a3a09dcb554622dc451193b1d68f901ae432b761..f60e2937d18f19fdaf6fdd9690afca3547a02768 100644 (file)
@@ -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;