projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca26f1c
)
httpd: fix handling of range requests
1_24_stable
author
Denys Vlasenko
<vda.linux@googlemail.com>
Mon, 18 Sep 2017 11:09:11 +0000
(13:09 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Mon, 18 Sep 2017 12:08:04 +0000
(14:08 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/httpd.c
patch
|
blob
|
history
diff --git
a/networking/httpd.c
b/networking/httpd.c
index ed15fd8834ed9fff43679ff6ddc2e1310080771b..bfec4c3c5fac65b6071213a251f7bfed97df5e2c 100644
(file)
--- 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) {