diff options
author | Ron Yorston <rmy@pobox.com> | 2012-04-23 10:57:02 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2012-04-23 10:57:02 +0100 |
commit | 2903c15333636ae51db14cab009533bac68c8a30 (patch) | |
tree | 11a49598f98c505c021202564348c5639e2fb0b1 /networking/httpd.c | |
parent | 5fc2c035953f71992197f6025918a8fe79ade1d3 (diff) | |
parent | f5234398ef3010b68468cafe3e2ea89b2bb08a17 (diff) | |
download | busybox-w32-2903c15333636ae51db14cab009533bac68c8a30.tar.gz busybox-w32-2903c15333636ae51db14cab009533bac68c8a30.tar.bz2 busybox-w32-2903c15333636ae51db14cab009533bac68c8a30.zip |
Merge commit '1_20_0' into merge
Diffstat (limited to 'networking/httpd.c')
-rw-r--r-- | networking/httpd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/networking/httpd.c b/networking/httpd.c index f233cb0ba..12218a0a3 100644 --- a/networking/httpd.c +++ b/networking/httpd.c | |||
@@ -1594,7 +1594,7 @@ static NOINLINE void send_file_and_exit(const char *url, int what) | |||
1594 | } | 1594 | } |
1595 | range_len = MAXINT(off_t); | 1595 | range_len = MAXINT(off_t); |
1596 | if (range_start >= 0) { | 1596 | if (range_start >= 0) { |
1597 | if (!range_end) { | 1597 | if (!range_end || range_end > file_size - 1) { |
1598 | range_end = file_size - 1; | 1598 | range_end = file_size - 1; |
1599 | } | 1599 | } |
1600 | if (range_end < range_start | 1600 | if (range_end < range_start |
@@ -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 |
1680 | struct pam_userinfo { | 1680 | struct 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, |