httpd: fix handling of range requests 1_27_stable
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 18 Sep 2017 11:09:11 +0000 (13:09 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 18 Sep 2017 11:11:54 +0000 (13:11 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/httpd.c

index e072f23c72cd1202167c6aceda9ed1fd3ebfd192..5e32fc936e6307f86d541c8db78693a14a00ced9 100644 (file)
@@ -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) {