Mercurial > hg > nginx
comparison src/core/ngx_buf.c @ 7282:da9941c9b01b
Leave chain in ngx_chain_add_copy() in consistent state on errors.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 04 Jun 2018 18:47:54 +0300 |
parents | 7cc2d3a96ea3 |
children | c7a8bdf5af55 |
comparison
equal
deleted
inserted
replaced
7281:bd6563e81cea | 7282:da9941c9b01b |
---|---|
135 } | 135 } |
136 | 136 |
137 while (in) { | 137 while (in) { |
138 cl = ngx_alloc_chain_link(pool); | 138 cl = ngx_alloc_chain_link(pool); |
139 if (cl == NULL) { | 139 if (cl == NULL) { |
140 *ll = NULL; | |
140 return NGX_ERROR; | 141 return NGX_ERROR; |
141 } | 142 } |
142 | 143 |
143 cl->buf = in->buf; | 144 cl->buf = in->buf; |
144 *ll = cl; | 145 *ll = cl; |