aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVladimir Homutov <vl@nginx.com>2018-08-24 12:19:37 +0300
committerVladimir Homutov <vl@nginx.com>2018-08-24 12:19:37 +0300
commit62821f1c99f3bdb79ddbef2386060a6deb192605 (patch)
tree28c362ed003911389284eaa88c1a0b1f008af2ba /src
parentd817ceae729914e7423c4c206165fc244513f021 (diff)
downloadnginx-62821f1c99f3bdb79ddbef2386060a6deb192605.tar.gz
nginx-62821f1c99f3bdb79ddbef2386060a6deb192605.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/http/ngx_http_upstream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index 605ae3486..690194175 100644
--- 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_http_request_t *r,
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;
}