# HG changeset patch # User Igor Sysoev # Date 1249651002 0 # Node ID f958084d4c1286d1faaa8f2250a50014ef3b555f # Parent 5957e869f04dba24c30541fe0e081d71972af818 fix segfault introduced in r3007 diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -2883,7 +2883,7 @@ ngx_http_upstream_finalize_request(ngx_h #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,