minissdp: fix potential out-of-bounds read

This commit is contained in:
Justin Maggard committed 2014-04-11 12:31:32 -07:00
1 parent 3a57744735
commit c6367aa4ce
1 file changed
+1 -1
+1 -1
View File
@@ -364,7 +364,7 @@ ParseUPnPClient(char *location)
{
nread += n;
buf[nread] = '\0';
n = nread;
n = nread - 4;
p = buf;
while (!off && (n-- > 0))