aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_upstream.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-08-07 13:16:42 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-08-07 13:16:42 +0000
commit22fc3e656eef49133df3cf692ddaf2f6810cd1ea (patch)
treeac38fd99360cb7a670dd6615f74a717388b4d48b /src/http/ngx_http_upstream.c
parentccefc4f0aa5b3a06f2335d98e300b2507df6ad7b (diff)
downloadnginx-22fc3e656eef49133df3cf692ddaf2f6810cd1ea.tar.gz
nginx-22fc3e656eef49133df3cf692ddaf2f6810cd1ea.zip
fix segfault introduced in r3007
Diffstat (limited to 'src/http/ngx_http_upstream.c')
-rw-r--r--src/http/ngx_http_upstream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index 23cf1b605..e705da6c2 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -2883,7 +2883,7 @@ ngx_http_upstream_finalize_request(ngx_http_request_t *r,
#if (NGX_HTTP_CACHE)
- if (u->cacheable) {
+ if (u->cacheable && r->cache) {
time_t valid;
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,