From: Nikolai Kondrashov Date: Tue, 28 Feb 2017 17:39:45 +0000 (+0100) Subject: Fix buffer overflow in fr_pton_port X-Git-Tag: release_3_0_13~9 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=freeradius.git;a=commitdiff_plain;h=ed979270941e3fe97d3025bbed516b138da7552a Fix buffer overflow in fr_pton_port --- diff --git a/src/lib/misc.c b/src/lib/misc.c index ba3fc36..cbc38ea 100644 --- a/src/lib/misc.c +++ b/src/lib/misc.c @@ -626,7 +626,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 > ((q + sizeof(buffer)) - value)) { error: fr_strerror_printf("IP string contains trailing garbage after port delimiter"); return -1;