aboutsummaryrefslogtreecommitdiff
path: root/networking/httpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/httpd.c')
-rw-r--r--networking/httpd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/networking/httpd.c b/networking/httpd.c
index fb6ecbf70..12218a0a3 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -1676,7 +1676,7 @@ static int checkPermIP(void)
1676 1676
1677#if ENABLE_FEATURE_HTTPD_BASIC_AUTH 1677#if ENABLE_FEATURE_HTTPD_BASIC_AUTH
1678 1678
1679# if ENABLE_FEATURE_HTTPD_AUTH_MD5 && ENABLE_PAM 1679# if ENABLE_PAM
1680struct pam_userinfo { 1680struct pam_userinfo {
1681 const char *name; 1681 const char *name;
1682 const char *pw; 1682 const char *pw;
@@ -1842,7 +1842,9 @@ static int check_user_passwd(const char *path, char *user_and_passwd)
1842 1842
1843 if (passwd[0] == '$' && isdigit(passwd[1])) { 1843 if (passwd[0] == '$' && isdigit(passwd[1])) {
1844 char *encrypted; 1844 char *encrypted;
1845# if !ENABLE_PAM
1845 check_encrypted: 1846 check_encrypted:
1847# endif
1846 /* encrypt pwd from peer and check match with local one */ 1848 /* encrypt pwd from peer and check match with local one */
1847 encrypted = pw_encrypt( 1849 encrypted = pw_encrypt(
1848 /* pwd (from peer): */ colon_after_user + 1, 1850 /* pwd (from peer): */ colon_after_user + 1,