minissdp: fix potential out-of-bounds read

This commit is contained in:
Justin Maggard 2014-04-11 12:31:32 -07:00
parent 3a57744735
commit c6367aa4ce

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))