diff options
| author | Janjaap Bos <janjaap.bos@capitar.com> | 2019-05-17 22:31:10 +0200 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2019-05-17 13:53:51 -0700 |
| commit | 9ba5cf6b2d070333c62beb195db75f47431ad557 (patch) | |
| tree | 9192e793ca5f96e77cb4de8f7a34cf2a9f801f69 | |
| parent | 7eaccabfef35774b13da215a53736d3b7956a592 (diff) | |
| download | nng-9ba5cf6b2d070333c62beb195db75f47431ad557.tar.gz nng-9ba5cf6b2d070333c62beb195db75f47431ad557.tar.bz2 nng-9ba5cf6b2d070333c62beb195db75f47431ad557.zip | |
Fix for http chunked transfer
| -rw-r--r-- | src/supplemental/http/http_chunk.c | 2 |
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); } |
