wok view busybox/stuff/busybox-1.27-httpd.u @ rev 20248

Up alsa (1.1.5) again
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 12 15:28:31 2018 +0100 (2018-03-12)
parents
children
line source
1 From 2b400d9b2b7309d6e479102fc3ce646e893058a5 Mon Sep 17 00:00:00 2001
2 From: Denys Vlasenko <vda.linux@googlemail.com>
3 Date: Mon, 18 Sep 2017 13:09:11 +0200
4 Subject: httpd: fix handling of range requests
6 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
7 ---
8 networking/httpd.c | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
11 diff --git a/networking/httpd.c b/networking/httpd.c
12 index e072f23..5e32fc9 100644
13 --- a/networking/httpd.c
14 +++ b/networking/httpd.c
15 @@ -2337,7 +2337,7 @@ static void handle_incoming_and_exit(const len_and_sockaddr *fromAddr)
16 if (STRNCASECMP(iobuf, "Range:") == 0) {
17 /* We know only bytes=NNN-[MMM] */
18 char *s = skip_whitespace(iobuf + sizeof("Range:")-1);
19 - if (is_prefixed_with(s, "bytes=") == 0) {
20 + if (is_prefixed_with(s, "bytes=")) {
21 s += sizeof("bytes=")-1;
22 range_start = BB_STRTOOFF(s, &s, 10);
23 if (s[0] != '-' || range_start < 0) {
24 --
25 cgit v0.12