fix segfault introduced in r2845

This commit is contained in:
Igor Sysoev 2009-05-22 11:32:17 +00:00
parent 7e559ef739
commit 83b0b36110
1 changed files with 4 additions and 1 deletions

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;