diff src/http/modules/ngx_http_ssi_filter_module.c @ 1893:685048830623

fix segfault if empty stub block is used second time
author Igor Sysoev <igor@sysoev.ru>
date Thu, 14 Feb 2008 16:03:48 +0000
parents e584e946e198
children 7018254cc006 9f15e5f8ff9e
line wrap: on
line diff
--- 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 
 
         if (bl[i].count++) {
 
+            out = NULL;
             ll = &out;
 
             for (tl = bl[i].bufs; tl; tl = tl->next) {