changeset 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 b25825e260a1
children b982f2dee8cf
files src/http/modules/ngx_http_fastcgi_module.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/modules/ngx_http_fastcgi_module.c	Wed Mar 10 13:49:17 2010 +0000
+++ b/src/http/modules/ngx_http_fastcgi_module.c	Wed Mar 10 13:51:47 2010 +0000
@@ -1254,7 +1254,7 @@
 
 #if (NGX_HTTP_CACHE)
 
-        if (f->large_stderr) {
+        if (f->large_stderr && r->cache) {
             u_char   *start;
             ssize_t   len;