diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-10-15 20:10:04 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-10-15 20:10:04 +0200 |
commit | 8e3cc7d5d45e598d5c41ac5ae7597cafbfaac888 (patch) | |
tree | f955bfb5d5951582c283c829eb278383b6edef4c /src | |
parent | fba9bbe4cd29744fe30753f63a37102f664e36bc (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/extra/m_ssl_openssl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) |