diff options
author | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-04-24 11:07:41 +0000 |
---|---|---|
committer | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-04-24 11:07:41 +0000 |
commit | c9fd9dc06a702edf52702dfdd1a517c1b7117909 (patch) | |
tree | 45d98264196390792a4abf87c04f4c8ff007ec70 /uhttpd-utils.c | |
parent | 1685238d51c6d87c6fab7ee3df6ddb5b9291bc87 (diff) | |
download | uhttpd-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-utils.c')
-rw-r--r-- | uhttpd-utils.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/uhttpd-utils.c b/uhttpd-utils.c index 96c0b82..caa6b12 100644 --- a/uhttpd-utils.c +++ b/uhttpd-utils.c @@ -622,10 +622,14 @@ struct auth_realm * uh_auth_add(char *path, char *user, char *pass) min(strlen(pass), sizeof(new->pass) - 1)); } - uh_realm_count++; + if( new->pass[0] ) + { + uh_realm_count++; + return new; + } } - return new; + return NULL; } int uh_auth_check( |