diff options
author | Valentin Bartenev <vbart@nginx.com> | 2019-09-30 19:11:17 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2019-09-30 19:11:17 +0300 |
commit | f8ff71b917452589bdac38ca6e51293fb05f2e8a (patch) | |
tree | d578394d886b9b1d910842bd7117c655d05caaa1 /src/nxt_h1proto.c | |
parent | f7d3db314da88be47eeed0a3509368cbe4c5f04f (diff) | |
download | unit-f8ff71b917452589bdac38ca6e51293fb05f2e8a.tar.gz unit-f8ff71b917452589bdac38ca6e51293fb05f2e8a.tar.bz2 |
HTTP: corrected allocation size for tail chunk.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_h1proto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_h1proto.c b/src/nxt_h1proto.c index 39be4315..541fcb44 100644 --- a/src/nxt_h1proto.c +++ b/src/nxt_h1proto.c @@ -1293,7 +1293,7 @@ nxt_h1p_chunk_create(nxt_task_t *task, nxt_http_request_t *r, nxt_buf_t *out) for (b = out; b != NULL; b = b->next) { if (nxt_buf_is_last(b)) { - tail = nxt_http_buf_mem(task, r, chunk_size); + tail = nxt_http_buf_mem(task, r, sizeof(tail_chunk)); if (nxt_slow_path(tail == NULL)) { return NULL; } |