diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-05-22 11:32:17 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-05-22 11:32:17 +0000 |
commit | 430d42bfdc105d5ea95050fa054bb94671ddcfa4 (patch) | |
tree | b075af935e6bf2ed4063e963726c7c011fa17c0b /src/http/ngx_http_variables.c | |
parent | 93c483e0c5b17f04e37a80c2fa2e22e24a0c2492 (diff) | |
download | nginx-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.c | 5 |
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; |