mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08:00
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.
This commit is contained in:
parent
d817ceae72
commit
62821f1c99
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user