aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2010-03-10 13:51:47 +0000
committerIgor Sysoev <igor@sysoev.ru>2010-03-10 13:51:47 +0000
commit7e3fdc4e8eebb6a4fb8cf764a5320ce234aec3be (patch)
tree43cca6ec8cf1c876a88f7cbcbfafd399ab308b39 /src
parent1c9f74852faf718d78b4190dac8b14e5324885cf (diff)
downloadnginx-7e3fdc4e8eebb6a4fb8cf764a5320ce234aec3be.tar.gz
nginx-7e3fdc4e8eebb6a4fb8cf764a5320ce234aec3be.zip
fix segfault if there was non cached large FastCGI stderr output before header,
the bug had been introduced in r3461
Diffstat (limited to 'src')
-rw-r--r--src/http/modules/ngx_http_fastcgi_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_fastcgi_module.c b/src/http/modules/ngx_http_fastcgi_module.c
index 845dd5f5e..b09b3307a 100644
--- 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_request_t *r)
#if (NGX_HTTP_CACHE)
- if (f->large_stderr) {
+ if (f->large_stderr && r->cache) {
u_char *start;
ssize_t len;