X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fmisc.c;h=cbc38eac1213c5bd7999d31199d7a7d32cf26fc8;hb=ed979270941e3fe97d3025bbed516b138da7552a;hp=ba3fc362fef18eb993fd1593c1eb62393cda0aa4;hpb=b3a9fb1dac390def850ba98b890b9cbc457eb29b;p=freeradius.git 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;