mirror of
https://github.com/nginx/nginx.git
synced 2024-11-29 09:19:00 +08:00
fix segfault introduced in r2845
This commit is contained in:
parent
93c483e0c5
commit
430d42bfdc
@ -1492,7 +1492,10 @@ ngx_http_variable_request_body(ngx_http_request_t *r,
|
||||
ngx_buf_t *buf, *next;
|
||||
ngx_chain_t *cl;
|
||||
|
||||
if (r->request_body == NULL || r->request_body->temp_file) {
|
||||
if (r->request_body == NULL
|
||||
|| r->request_body->bufs == NULL
|
||||
|| r->request_body->temp_file)
|
||||
{
|
||||
v->not_found = 1;
|
||||
|
||||
return NGX_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user