From: Jacob Hoffman-Andrews Date: Sat, 24 Apr 2021 03:24:30 +0000 (-0700) Subject: c-hpyer: fix handling of zero-byte chunk from hyper X-Git-Tag: curl-7_77_0~135 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5e7fc49c19b86eab094727f43aa48825e1f50829;p=thirdparty%2Fcurl.git c-hpyer: fix handling of zero-byte chunk from hyper Closes #6951 --- diff --git a/lib/c-hyper.c b/lib/c-hyper.c index 5d370d7bda..a7bee08c46 100644 --- a/lib/c-hyper.c +++ b/lib/c-hyper.c @@ -175,6 +175,8 @@ static int hyper_body_chunk(void *userdata, const hyper_buf *chunk) } if(k->ignorebody) return HYPER_ITER_CONTINUE; + if(0 == len) + return HYPER_ITER_CONTINUE; Curl_debug(data, CURLINFO_DATA_IN, buf, len); if(!data->set.http_ce_skip && k->writer_stack) /* content-encoded data */