diff src/http/modules/ngx_http_fastcgi_module.c @ 3469:08a66ba99191

fix segfault if there was non cached large FastCGI stderr output before header, the bug had been introduced in r3461
author Igor Sysoev <igor@sysoev.ru>
date Wed, 10 Mar 2010 13:51:47 +0000
parents bbea0b19b608
children 67b8a4e0d7e1
line wrap: on
line diff
--- a/src/http/modules/ngx_http_fastcgi_module.c
+++ b/src/http/modules/ngx_http_fastcgi_module.c
@@ -1254,7 +1254,7 @@ ngx_http_fastcgi_process_header(ngx_http
 
 #if (NGX_HTTP_CACHE)
 
-        if (f->large_stderr) {
+        if (f->large_stderr && r->cache) {
             u_char   *start;
             ssize_t   len;