mirror of
https://github.com/nginx/nginx.git
synced 2025-06-10 03:22:48 +08:00
Leave chain in ngx_chain_add_copy() in consistent state on errors.
This commit is contained in:
parent
7b9bc5d4d1
commit
dac90a4bff
@ -137,6 +137,7 @@ ngx_chain_add_copy(ngx_pool_t *pool, ngx_chain_t **chain, ngx_chain_t *in)
|
|||||||
while (in) {
|
while (in) {
|
||||||
cl = ngx_alloc_chain_link(pool);
|
cl = ngx_alloc_chain_link(pool);
|
||||||
if (cl == NULL) {
|
if (cl == NULL) {
|
||||||
|
*ll = NULL;
|
||||||
return NGX_ERROR;
|
return NGX_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user