Mercurial > hg > nginx
diff src/http/ngx_http_variables.c @ 2878:8535736ace1a
fix segfault introduced in r2845
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 22 May 2009 11:32:17 +0000 |
parents | 507fc5ac9839 |
children | ecbfc3396c42 |
line wrap: on
line diff
--- a/src/http/ngx_http_variables.c +++ b/src/http/ngx_http_variables.c @@ -1492,7 +1492,10 @@ ngx_http_variable_request_body(ngx_http_ 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;