[PATCH] httpd: fix handling of range requests
Denys Vlasenko
vda.linux at googlemail.com
Mon Sep 18 11:14:23 UTC 2017
Applied, thanks
On Sat, Sep 16, 2017 at 3:21 PM, Casper Ti. Vector
<caspervector at gmail.com> wrote:
> ---
> networking/httpd.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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)
> 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) {
> --
> 2.14.1
>
>
> --
> My current OpenPGP key:
> RSA4096/0x227E8CAAB7AA186C (expires: 2020.10.19)
> 7077 7781 B859 5166 AE07 0286 227E 8CAA B7AA 186C
>
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
More information about the busybox
mailing list