mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
Leave chain in ngx_chain_add_copy() in consistent state on errors.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user