From 9ba5cf6b2d070333c62beb195db75f47431ad557 Mon Sep 17 00:00:00 2001 From: Janjaap Bos Date: Fri, 17 May 2019 22:31:10 +0200 Subject: Fix for http chunked transfer --- src/supplemental/http/http_chunk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/supplemental/http/http_chunk.c b/src/supplemental/http/http_chunk.c index 9333548e..20644d37 100644 --- a/src/supplemental/http/http_chunk.c +++ b/src/supplemental/http/http_chunk.c @@ -315,7 +315,7 @@ nni_http_chunks_parse(nni_http_chunks *cl, void *buf, size_t n, size_t *lenp) break; case CS_DATA: - if ((rv = chunk_ingest_data(cl, src + i, n, &cnt)) != + if ((rv = chunk_ingest_data(cl, src + i, n - i, &cnt)) != 0) { return (rv); } -- cgit v1.2.3-70-g09d2