diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-09-18 13:09:11 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-09-18 13:09:11 +0200 |
commit | a6390ed77ea67937c91d8100f3c7ce7c5bce2402 (patch) | |
tree | 51adc6bed7a4f6d64b874f84ae5f48801adc614d | |
parent | 3f5ba0c8724d154c9f184fad458471490a4ef5b3 (diff) | |
download | busybox-w32-a6390ed77ea67937c91d8100f3c7ce7c5bce2402.tar.gz busybox-w32-a6390ed77ea67937c91d8100f3c7ce7c5bce2402.tar.bz2 busybox-w32-a6390ed77ea67937c91d8100f3c7ce7c5bce2402.zip |
httpd: fix handling of range requests
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | networking/httpd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/httpd.c b/networking/httpd.c index c82383507..74196a4f1 100644 --- a/networking/httpd.c +++ b/networking/httpd.c | |||
@@ -2338,7 +2338,7 @@ static void handle_incoming_and_exit(const len_and_sockaddr *fromAddr) | |||
2338 | if (STRNCASECMP(iobuf, "Range:") == 0) { | 2338 | if (STRNCASECMP(iobuf, "Range:") == 0) { |
2339 | /* We know only bytes=NNN-[MMM] */ | 2339 | /* We know only bytes=NNN-[MMM] */ |
2340 | char *s = skip_whitespace(iobuf + sizeof("Range:")-1); | 2340 | char *s = skip_whitespace(iobuf + sizeof("Range:")-1); |
2341 | if (is_prefixed_with(s, "bytes=") == 0) { | 2341 | if (is_prefixed_with(s, "bytes=")) { |
2342 | s += sizeof("bytes=")-1; | 2342 | s += sizeof("bytes=")-1; |
2343 | range_start = BB_STRTOOFF(s, &s, 10); | 2343 | range_start = BB_STRTOOFF(s, &s, 10); |
2344 | if (s[0] != '-' || range_start < 0) { | 2344 | if (s[0] != '-' || range_start < 0) { |