aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_variables.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-05-22 11:32:17 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-05-22 11:32:17 +0000
commit430d42bfdc105d5ea95050fa054bb94671ddcfa4 (patch)
treeb075af935e6bf2ed4063e963726c7c011fa17c0b /src/http/ngx_http_variables.c
parent93c483e0c5b17f04e37a80c2fa2e22e24a0c2492 (diff)
downloadnginx-430d42bfdc105d5ea95050fa054bb94671ddcfa4.tar.gz
nginx-430d42bfdc105d5ea95050fa054bb94671ddcfa4.zip
fix segfault introduced in r2845
Diffstat (limited to 'src/http/ngx_http_variables.c')
-rw-r--r--src/http/ngx_http_variables.c5
1 files changed, 4 insertions, 1 deletions
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;