From 5256bf19157407a5a7d71f61d17e6b390b1d920f Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Sun, 4 May 2008 10:05:29 +0000 Subject: r1894 merge: fix segfault if empty stub block is used second time --- src/http/modules/ngx_http_ssi_filter_module.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/http/modules/ngx_http_ssi_filter_module.c b/src/http/modules/ngx_http_ssi_filter_module.c index ae72ee379..5f01bb522 100644 --- a/src/http/modules/ngx_http_ssi_filter_module.c +++ b/src/http/modules/ngx_http_ssi_filter_module.c @@ -1983,6 +1983,7 @@ ngx_http_ssi_include(ngx_http_request_t *r, ngx_http_ssi_ctx_t *ctx, if (bl[i].count++) { + out = NULL; ll = &out; for (tl = bl[i].bufs; tl; tl = tl->next) { -- cgit