diff options
author | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-07-11 09:59:05 +0000 |
---|---|---|
committer | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-07-11 09:59:05 +0000 |
commit | 945edd6c0c9e6bd1ad4daa4cc204f5ca283b81b5 (patch) | |
tree | b7ded192df82c2c3e08f28bd06936cbefc6422df /uhttpd-cgi.h | |
parent | 77d6f72fb7a66c22b4723c6dbf7e8b3d6d63a618 (diff) | |
download | uhttpd-945edd6c0c9e6bd1ad4daa4cc204f5ca283b81b5.tar.gz |
[package] uhttpd: retry parsing the CGI header until the buffer space is exhausted
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/package/uhttpd/src@32662 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'uhttpd-cgi.h')
-rw-r--r-- | uhttpd-cgi.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/uhttpd-cgi.h b/uhttpd-cgi.h index fffcc5d..c7094da 100644 --- a/uhttpd-cgi.h +++ b/uhttpd-cgi.h @@ -28,7 +28,11 @@ struct uh_cgi_state { - char httpbuf[UH_LIMIT_MSGHEAD]; + struct { + char buf[UH_LIMIT_MSGHEAD]; + char *ptr; + int len; + } httpbuf; int content_length; bool header_sent; }; |