Mercurial > hg > nginx
changeset 1032:899050121f43
quick fix for case when ssl_session_cache defined,
but ssl is not enabled in any server
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 15 Jan 2007 17:48:31 +0000 |
parents | bf1785dfb75f |
children | aed8a9de6245 |
files | src/core/ngx_cycle.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/core/ngx_cycle.c Mon Jan 15 17:12:43 2007 +0000 +++ b/src/core/ngx_cycle.c Mon Jan 15 17:48:31 2007 +0000 @@ -373,6 +373,11 @@ goto failed; } + if (shm_zone[i].init == NULL) { + /* unused shared zone */ + continue; + } + shm_zone[i].shm.log = cycle->log; opart = &old_cycle->shared_memory.part;