HTTP: corrected allocation size for tail chunk.

This commit is contained in:
Valentin Bartenev
2019-09-30 19:11:17 +03:00
parent f7d3db314d
commit f8ff71b917

View File

@@ -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) { for (b = out; b != NULL; b = b->next) {
if (nxt_buf_is_last(b)) { 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)) { if (nxt_slow_path(tail == NULL)) {
return NULL; return NULL;
} }