commit | 22fc3e656eef49133df3cf692ddaf2f6810cd1ea | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Fri Aug 07 13:16:42 2009 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Fri Aug 07 13:16:42 2009 +0000 |
tree | ac38fd99360cb7a670dd6615f74a717388b4d48b | |
parent | ccefc4f0aa5b3a06f2335d98e300b2507df6ad7b [diff] |
fix segfault introduced in r3007
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index 23cf1b6..e705da6 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c
@@ -2883,7 +2883,7 @@ #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,