svn commit: trunk/busybox/networking
vda at busybox.net
vda at busybox.net
Fri Jun 13 06:20:40 PDT 2008
Author: vda
Date: 2008-06-13 06:20:38 -0700 (Fri, 13 Jun 2008)
New Revision: 22321
Log:
httpd: fix authentication
Modified:
trunk/busybox/networking/httpd.c
Changeset:
Modified: trunk/busybox/networking/httpd.c
===================================================================
--- trunk/busybox/networking/httpd.c 2008-06-13 13:10:01 UTC (rev 22320)
+++ trunk/busybox/networking/httpd.c 2008-06-13 13:20:38 UTC (rev 22321)
@@ -2045,9 +2045,10 @@
#if ENABLE_FEATURE_HTTPD_BASIC_AUTH
/* Case: no "Authorization:" was seen, but page does require passwd.
* Check that with dummy user:pass */
- if ((authorized < 0) && check_user_passwd(urlcopy, ":") == 0) {
+ if (authorized < 0)
+ authorized = check_user_passwd(urlcopy, ":");
+ if (!authorized)
send_headers_and_exit(HTTP_UNAUTHORIZED);
- }
#endif
if (found_moved_temporarily) {
More information about the busybox-cvs
mailing list