fix segfault introduced in r2845

This commit is contained in:
Igor Sysoev 2009-05-22 11:32:17 +00:00
parent 93c483e0c5
commit 430d42bfdc

View File

@ -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;