upnphttp: Fix chunk length parsing
This commit is contained in:
parent
d809ab778f
commit
9bd58553fa
@ -432,7 +432,7 @@ next_header:
|
|||||||
if (h->req_buflen <= h->req_contentoff)
|
if (h->req_buflen <= h->req_contentoff)
|
||||||
return;
|
return;
|
||||||
while( (line < (h->req_buf + h->req_buflen)) &&
|
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 != line) )
|
||||||
{
|
{
|
||||||
endptr = strstr(endptr, "\r\n");
|
endptr = strstr(endptr, "\r\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user