diff options
author | Igor Sysoev <igor@sysoev.ru> | 2011-08-04 11:12:30 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2011-08-04 11:12:30 +0000 |
commit | dfd81a23b2771fa8a9be37a2a911562826005124 (patch) | |
tree | 3ccb7322a77c468b34b4373db153bb95a70d3771 /src/mail/ngx_mail_ssl_module.c | |
parent | c42be75569adf56defbe61ac46b14a70c684cd5e (diff) | |
download | nginx-dfd81a23b2771fa8a9be37a2a911562826005124.tar.gz nginx-dfd81a23b2771fa8a9be37a2a911562826005124.zip |
A new fix for the case when ssl_session_cache defined, but ssl is not
enabled in any server. The previous r1033 does not help when unused zone
becomes used after reconfiguration, so it is backed out.
The initial thought was to make SSL modules independed from SSL implementation
and to keep OpenSSL code dependance as much as in separate files.
Diffstat (limited to 'src/mail/ngx_mail_ssl_module.c')
-rw-r--r-- | src/mail/ngx_mail_ssl_module.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mail/ngx_mail_ssl_module.c b/src/mail/ngx_mail_ssl_module.c index 5767a2fd4..d06f7d2a9 100644 --- a/src/mail/ngx_mail_ssl_module.c +++ b/src/mail/ngx_mail_ssl_module.c @@ -474,6 +474,8 @@ ngx_mail_ssl_session_cache(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) scf->builtin_session_cache = NGX_SSL_NO_BUILTIN_SCACHE; } + scf->shm_zone->init = ngx_ssl_session_cache_init; + return NGX_CONF_OK; invalid: |