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:07:21 +0200
commit4316dff48aacb29307e1b52cb761fef603759b9d (patch)
tree5d5781ea4b60fc0eddd93de4e40ff089e187601b
parentee72302ac5e3b0b2217f616ab316d3c89e5a1f4c (diff)
downloadbusybox-1_26_stable.tar.gz
busybox-1_26_stable.tar.bz2
httpd: fix handling of range requests1_26_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 d301d598d..84d819723 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) {