aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_hunk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ngx_hunk.c')
-rw-r--r--src/core/ngx_hunk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/ngx_hunk.c b/src/core/ngx_hunk.c
index 992db16a0..517a1af23 100644
--- a/src/core/ngx_hunk.c
+++ b/src/core/ngx_hunk.c
@@ -113,12 +113,13 @@ int ngx_chain_add_copy(ngx_pool_t *pool, ngx_chain_t **ch, ngx_chain_t *in)
ngx_test_null(ce, ngx_alloc_chain_entry(pool), NGX_ERROR);
ce->hunk = in->hunk;
- ce->next = NULL;
*le = ce;
le = &ce->next;
in = in->next;
}
+ *le = NULL;
+
return NGX_OK;
}