summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2013-10-11 17:41:56 -0400
committerRob Crittenden <rcritten@redhat.com>2013-10-11 17:41:56 -0400
commit399685fc1bfaeb6bcb0e5879872338981c7453b7 (patch)
tree63f7099e1886a73d0dbc9231c6e35da868cf42cb
parent97a6da1a17abaffba40d71526d41be1580b7440b (diff)
downloadmod_nss-399685fc1bfaeb6bcb0e5879872338981c7453b7.tar.gz
mod_nss-399685fc1bfaeb6bcb0e5879872338981c7453b7.tar.xz
mod_nss-399685fc1bfaeb6bcb0e5879872338981c7453b7.zip
Only clear the SSL Session Cache when shutting the server down.
This was causing an FD leak. BZ 784548
-rw-r--r--nss_engine_init.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nss_engine_init.c b/nss_engine_init.c
index 72eb830..a7186bb 100644
--- a/nss_engine_init.c
+++ b/nss_engine_init.c
@@ -1241,9 +1241,6 @@ apr_status_t nss_init_ChildKill(void *data)
server_rec *s;
int shutdown = 0;
- /* Clear any client-side session cache data */
- SSL_ClearSessionCache();
-
/*
* Free the non-pool allocated structures
* in the per-server configurations
@@ -1286,6 +1283,9 @@ apr_status_t nss_init_ChildKill(void *data)
}
if (shutdown) {
+ /* Clear any client-side session cache data */
+ SSL_ClearSessionCache();
+
if (CERT_DisableOCSPDefaultResponder(CERT_GetDefaultCertDB())
!= SECSuccess) {
ap_log_error(APLOG_MARK, APLOG_ERR, 0, NULL,