]> git.kaiwu.me - nginx.git/commitdiff
fix segfault if empty stub block is used second time
authorIgor Sysoev <igor@sysoev.ru>
Thu, 14 Feb 2008 16:03:48 +0000 (16:03 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 14 Feb 2008 16:03:48 +0000 (16:03 +0000)
src/http/modules/ngx_http_ssi_filter_module.c

index 5e17cb59f669410c6b2190ba02d467c458a24aef..1d7730d56920a5d1286c6b8b1cca773d07f3a97c 100644 (file)
@@ -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) {