summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-09-18 13:09:11 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-09-18 13:11:54 +0200
commit2b400d9b2b7309d6e479102fc3ce646e893058a5 (patch)
tree25996c91013cb7f5bd7ca6c4feb1282f62a21b33
parent81e26c4b8ed2d3f9e65c39d583b9daf3082b2ab7 (diff)
downloadbusybox-1_27_stable.tar.gz
httpd: fix handling of range requests1_27_stable
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--networking/httpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/httpd.c b/networking/httpd.c
index e072f23c7..5e32fc936 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -2337,7 +2337,7 @@ static void handle_incoming_and_exit(const len_and_sockaddr *fromAddr)
if (STRNCASECMP(iobuf, "Range:") == 0) {
/* We know only bytes=NNN-[MMM] */
char *s = skip_whitespace(iobuf + sizeof("Range:")-1);
- if (is_prefixed_with(s, "bytes=") == 0) {
+ if (is_prefixed_with(s, "bytes=")) {
s += sizeof("bytes=")-1;
range_start = BB_STRTOOFF(s, &s, 10);
if (s[0] != '-' || range_start < 0) {