projects
/
project
/
uhttpd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56278d4
)
add missing check for unencrypted passwords
author
Felix Fietkau
<nbd@openwrt.org>
Mon, 21 Jan 2013 12:21:34 +0000
(13:21 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Mon, 21 Jan 2013 12:22:50 +0000
(13:22 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
auth.c
patch
|
blob
|
history
diff --git
a/auth.c
b/auth.c
index e1b157518886264b330ee5254e58a3c1fcd0e4a3..0c4872fe3ed8077e5838d72f9f4c285680a97623 100644
(file)
--- a/
auth.c
+++ b/
auth.c
@@
-118,7
+118,9
@@
bool uh_auth_check(struct client *cl, struct path_info *pi)
if (!req->realm)
return true;
- if (user_match && !strcmp(crypt(pass, realm->pass), realm->pass))
+ if (user_match &&
+ (!strcmp(pass, realm->pass) ||
+ !strcmp(crypt(pass, realm->pass), realm->pass)))
return true;
uh_http_header(cl, 401, "Authorization Required");