projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e773be0
)
httpd: fix authentication
author
Denis Vlasenko
<vda.linux@googlemail.com>
Fri, 13 Jun 2008 13:20:38 +0000
(13:20 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Fri, 13 Jun 2008 13:20:38 +0000
(13:20 -0000)
networking/httpd.c
patch
|
blob
|
history
diff --git
a/networking/httpd.c
b/networking/httpd.c
index 382893bfbdef944b9fd317acd149011f93ccfb17..9b4b7172d74fa485011c02581958bb958bda654a 100644
(file)
--- a/
networking/httpd.c
+++ b/
networking/httpd.c
@@
-2045,9
+2045,10
@@
static void handle_incoming_and_exit(const len_and_sockaddr *fromAddr)
#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) {