Mercurial > hg > nginx-quic
changeset 7341:15ea84e65d07
Upstream: fixed request chain traversal (ticket #1618).
The problem does not manifest itself currently, because in case of
non-buffered reading, chain link created by u->create_request method
consists of a single element.
Found by PVS-Studio.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Fri, 24 Aug 2018 12:19:37 +0300 |
parents | 70c6b08973a0 |
children | d5da7e71210e |
files | src/http/ngx_http_upstream.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -2135,7 +2135,7 @@ ngx_http_upstream_send_request_body(ngx_ out = u->request_bufs; if (r->request_body->bufs) { - for (cl = out; cl->next; cl = out->next) { /* void */ } + for (cl = out; cl->next; cl = cl->next) { /* void */ } cl->next = r->request_body->bufs; r->request_body->bufs = NULL; }