summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenys Vlasenko2017-09-18 13:09:11 +0200
committerDenys Vlasenko2017-09-18 13:09:11 +0200
commita6390ed77ea67937c91d8100f3c7ce7c5bce2402 (patch)
tree51adc6bed7a4f6d64b874f84ae5f48801adc614d /networking
parent3f5ba0c8724d154c9f184fad458471490a4ef5b3 (diff)
downloadbusybox-a6390ed77ea67937c91d8100f3c7ce7c5bce2402.zip
busybox-a6390ed77ea67937c91d8100f3c7ce7c5bce2402.tar.gz
httpd: fix handling of range requests
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r--networking/httpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/httpd.c b/networking/httpd.c
index c823835..74196a4 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -2338,7 +2338,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) {