From 8e3cc7d5d45e598d5c41ac5ae7597cafbfaac888 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Wed, 15 Oct 2014 20:10:04 +0200 Subject: m_ssl_openssl Free the ssl_cert object as soon as the session is closed instead of waiting for the next VerifyCertificate() or new connection --- src/modules/extra/m_ssl_openssl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules') diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp index 663926c4f..2c7c67cf1 100644 --- a/src/modules/extra/m_ssl_openssl.cpp +++ b/src/modules/extra/m_ssl_openssl.cpp @@ -403,7 +403,6 @@ class ModuleSSLOpenSSL : public Module session->sess = SSL_new(ctx); session->status = ISSL_NONE; session->outbound = false; - session->cert = NULL; if (session->sess == NULL) return; @@ -660,6 +659,7 @@ class ModuleSSLOpenSSL : public Module session->sess = NULL; session->status = ISSL_NONE; + session->cert = NULL; } void VerifyCertificate(issl_session* session, StreamSocket* user) -- cgit v1.2.3