summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/extra/m_ssl_openssl.cpp2
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)