Mercurial > hg > nginx-quic
changeset 2878:8535736ace1a
fix segfault introduced in r2845
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 22 May 2009 11:32:17 +0000 |
parents | 3cd2790f4a9b |
children | 824d885aa0b1 |
files | src/http/ngx_http_variables.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
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;