mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
fix segfault when client_body_in_file_only is on, the body is not passed
to upstream, and nginx tries next upstream
This commit is contained in:
parent
ae2006b2fe
commit
8ff1e3251c
@ -569,8 +569,11 @@ ngx_http_upstream_connect(ngx_http_request_t *r, ngx_http_upstream_t *u)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (r->request_body && r->request_body->temp_file && r == r->main) {
|
if (r->request_body
|
||||||
|
&& r->request_body->buf
|
||||||
|
&& r->request_body->temp_file
|
||||||
|
&& r == r->main)
|
||||||
|
{
|
||||||
/*
|
/*
|
||||||
* the r->request_body->buf can be reused for one request only,
|
* the r->request_body->buf can be reused for one request only,
|
||||||
* the subrequests should allocate their own temporay bufs
|
* the subrequests should allocate their own temporay bufs
|
||||||
|
Loading…
Reference in New Issue
Block a user