From: Attila Molnar Date: Wed, 15 Oct 2014 18:10:04 +0000 (+0200) Subject: m_ssl_openssl Free the ssl_cert object as soon as the session is closed instead of... X-Git-Tag: v2.0.23~126 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=8e3cc7d5d45e598d5c41ac5ae7597cafbfaac888;p=user%2Fhenk%2Fcode%2Finspircd.git 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 --- 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)