From: Igor Sysoev Date: Fri, 22 May 2009 11:32:17 +0000 (+0000) Subject: fix segfault introduced in r2845 X-Git-Tag: release-0.7.59~6 X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=430d42bfdc105d5ea95050fa054bb94671ddcfa4;p=nginx.git fix segfault introduced in r2845 --- 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;