aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Denys Vlasenko <vda.linux@googlemail.com>2017-09-18 13:09:11 +0200
committerGravatar Denys Vlasenko <vda.linux@googlemail.com>2017-09-18 14:08:04 +0200
commitb03007455c0cba0571bc01d4257606e61d90d88a (patch)
tree2114f8ad2018b5303e9f5345220b3f831ec909b9
parentca26f1c238c51b3b2f80dd25fd7fcf8774f38ca4 (diff)
downloadbusybox-1_24_stable.tar.gz
busybox-1_24_stable.tar.bz2
httpd: fix handling of range requests1_24_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 ed15fd883..bfec4c3c5 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -2196,7 +2196,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) {