X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/800c7f427ae8f51939f681301230de21d2f2f4f0..4613d8680684a15dbe9ca30f5fb69e0c55f1de2d:/package/uhttpd/src/uhttpd-cgi.c?ds=sidebyside diff --git a/package/uhttpd/src/uhttpd-cgi.c b/package/uhttpd/src/uhttpd-cgi.c index 1a6c6ad4f..855a72f56 100644 --- a/package/uhttpd/src/uhttpd-cgi.c +++ b/package/uhttpd/src/uhttpd-cgi.c @@ -68,7 +68,7 @@ static struct http_response * uh_cgi_header_parse(char *buf, int len, int *off) if( (pos < len) && (buf[pos] == '\n') ) pos++; - if( pos < len ) + if( pos <= len ) { if( (hdrcount + 1) < array_size(res.headers) ) {