From: Igor Sysoev Date: Tue, 2 Jun 2009 16:07:13 +0000 (+0000) Subject: leave chain in consistent state on errors X-Git-Tag: release-0.8.0~3 X-Git-Url: http://git.kaiwu.me/sitemap.xml?a=commitdiff_plain;h=3e6470280797e9b4c8a2964cd77f3489cb7a1e91;p=nginx.git leave chain in consistent state on errors --- diff --git a/src/core/ngx_output_chain.c b/src/core/ngx_output_chain.c index ee23e8fe1..6d6d241c1 100644 --- a/src/core/ngx_output_chain.c +++ b/src/core/ngx_output_chain.c @@ -314,12 +314,11 @@ ngx_output_chain_add_copy(ngx_pool_t *pool, ngx_chain_t **chain, #endif + cl->next = NULL; *ll = cl; ll = &cl->next; } - *ll = NULL; - return NGX_OK; }