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
+++ 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;