[git commit branch/1_26_stable] httpd: fix handling of range requests

Denys Vlasenko vda.linux at googlemail.com
Mon Sep 18 12:07:21 UTC 2017


commit: https://git.busybox.net/busybox/commit/?id=4316dff48aacb29307e1b52cb761fef603759b9d
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/1_26_stable

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 networking/httpd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/networking/httpd.c b/networking/httpd.c
index d301d59..84d8197 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -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) {


More information about the busybox-cvs mailing list