aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanjaap Bos <janjaap.bos@capitar.com>2019-05-17 22:31:10 +0200
committerGarrett D'Amore <garrett@damore.org>2019-05-17 13:53:51 -0700
commit9ba5cf6b2d070333c62beb195db75f47431ad557 (patch)
tree9192e793ca5f96e77cb4de8f7a34cf2a9f801f69
parent7eaccabfef35774b13da215a53736d3b7956a592 (diff)
downloadnng-9ba5cf6b2d070333c62beb195db75f47431ad557.tar.gz
nng-9ba5cf6b2d070333c62beb195db75f47431ad557.tar.bz2
nng-9ba5cf6b2d070333c62beb195db75f47431ad557.zip
Fix for http chunked transfer
-rw-r--r--src/supplemental/http/http_chunk.c2
1 files changed, 1 insertions, 1 deletions
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);
}