summaryrefslogtreecommitdiff
path: root/uhttpd-cgi.c
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-04-24 11:07:41 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-04-24 11:07:41 +0000
commitc9fd9dc06a702edf52702dfdd1a517c1b7117909 (patch)
tree45d98264196390792a4abf87c04f4c8ff007ec70 /uhttpd-cgi.c
parent1685238d51c6d87c6fab7ee3df6ddb5b9291bc87 (diff)
downloaduhttpd-c9fd9dc06a702edf52702dfdd1a517c1b7117909.tar.gz
[package] uhttpd:
- ignore authentication realms that refer to user accounts with no password set yet (X-Wrt compatibility) - fix off-by-one in CGI header parsing, fixes cgi programs that emit bad header lines (AsteriskGUI compatibility) - bump version git-svn-id: svn://svn.openwrt.org/openwrt/trunk/package/uhttpd/src@21121 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'uhttpd-cgi.c')
-rw-r--r--uhttpd-cgi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uhttpd-cgi.c b/uhttpd-cgi.c
index 1a6c6ad..855a72f 100644
--- a/uhttpd-cgi.c
+++ b/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) )
{