upnphttp: Fix chunk length parsing

This commit is contained in:
Justin Maggard 2023-05-31 00:40:03 -07:00
parent d809ab778f
commit 9bd58553fa

View File

@ -432,7 +432,7 @@ next_header:
if (h->req_buflen <= h->req_contentoff)
return;
while( (line < (h->req_buf + h->req_buflen)) &&
(h->req_chunklen = strtol(line, &endptr, 16) > 0) &&
((h->req_chunklen = strtol(line, &endptr, 16)) > 0) &&
(endptr != line) )
{
endptr = strstr(endptr, "\r\n");