diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2009-06-02 16:07:13 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2009-06-02 16:07:13 +0000 |
| commit | 3e6470280797e9b4c8a2964cd77f3489cb7a1e91 (patch) | |
| tree | 24561b9a61ac6127758404314e22f9bdd4ccd379 | |
| parent | 42846485a23246b55bd9ff6b59ccc85ba8066b70 (diff) | |
| download | nginx-3e6470280797e9b4c8a2964cd77f3489cb7a1e91.tar.gz nginx-3e6470280797e9b4c8a2964cd77f3489cb7a1e91.tar.bz2 | |
leave chain in consistent state on errors
| -rw-r--r-- | src/core/ngx_output_chain.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; } |
