mirror of
https://github.com/ep00ch/lwip-contrib-mac.git
synced 2024-10-01 06:54:51 +00:00
patch #8097 httpd: Return failure if parsing Content-Length fails
This commit is contained in:
parent
a37d623975
commit
21e076cb56
@ -1787,6 +1787,11 @@ http_post_request(struct pbuf **inp, struct http_state *hs,
|
||||
}
|
||||
}
|
||||
}
|
||||
/* If we come here, headers are fully received (double-crlf), but Content-Length
|
||||
was not included. Since this is currently the only supported method, we have
|
||||
to fail in this case! */
|
||||
LWIP_DEBUGF(HTTPD_DEBUG, ("Error when parsing Content-Length\n"));
|
||||
return ERR_ARG;
|
||||
}
|
||||
/* if we come here, the POST is incomplete */
|
||||
#if LWIP_HTTPD_SUPPORT_REQUESTLIST
|
||||
|
Loading…
Reference in New Issue
Block a user