mirror of
https://github.com/nginx/nginx.git
synced 2026-06-27 04:12:05 +00:00
leave chain in consistent state on errors
This commit is contained in:
parent
42846485a2
commit
3e64702807
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue