]> git.kaiwu.me - nginx.git/commitdiff
r1894 merge:
authorIgor Sysoev <igor@sysoev.ru>
Sun, 4 May 2008 10:05:29 +0000 (10:05 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Sun, 4 May 2008 10:05:29 +0000 (10:05 +0000)
fix segfault if empty stub block is used second time

src/http/modules/ngx_http_ssi_filter_module.c

index ae72ee3796a27273614ffc509498254c738fabee..5f01bb52289c4faa2b60bbc914ae44ee4167cc28 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) {