From 430d42bfdc105d5ea95050fa054bb94671ddcfa4 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Fri, 22 May 2009 11:32:17 +0000 Subject: fix segfault introduced in r2845 --- src/http/ngx_http_variables.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/http/ngx_http_variables.c b/src/http/ngx_http_variables.c index 28c82ef2f..d41b996c6 100644 --- 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_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; -- cgit