From: Sergey Kandaurov Date: Mon, 4 Jun 2018 15:47:54 +0000 (+0300) Subject: Leave chain in ngx_chain_add_copy() in consistent state on errors. X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=dac90a4bff8404e8097249a1ee444b77580f43ba;p=nginx.git Leave chain in ngx_chain_add_copy() in consistent state on errors. --- diff --git a/src/core/ngx_buf.c b/src/core/ngx_buf.c index 1862a0606..c3783c446 100644 --- a/src/core/ngx_buf.c +++ b/src/core/ngx_buf.c @@ -137,6 +137,7 @@ ngx_chain_add_copy(ngx_pool_t *pool, ngx_chain_t **chain, ngx_chain_t *in) while (in) { cl = ngx_alloc_chain_link(pool); if (cl == NULL) { + *ll = NULL; return NGX_ERROR; }