summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel De Graaf <danieldg@inspircd.org>2011-06-23 20:38:05 -0400
committerDaniel De Graaf <danieldg@inspircd.org>2011-06-23 20:38:05 -0400
commit197431e44a04b8cbb698687972ea419c74c37ef9 (patch)
tree0013df08ca5c4566c7f4a7a0fd9fa5e42ac66686 /src
parent386430c38dfba370369bad51d35a1dedc87eb159 (diff)
Remove possibly dangerous skip of VerifyCertificate
Diffstat (limited to 'src')
-rw-r--r--src/modules/extra/m_ssl_gnutls.cpp2
-rw-r--r--src/modules/extra/m_ssl_openssl.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp
index 95638417b..b8c4815e5 100644
--- a/src/modules/extra/m_ssl_gnutls.cpp
+++ b/src/modules/extra/m_ssl_gnutls.cpp
@@ -611,7 +611,7 @@ class ModuleSSLGnuTLS : public Module
void VerifyCertificate(issl_session* session, StreamSocket* user)
{
- if (!session->sess || !user || session->cert)
+ if (!session->sess || !user)
return;
unsigned int status;
diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp
index f203d215b..1781764da 100644
--- a/src/modules/extra/m_ssl_openssl.cpp
+++ b/src/modules/extra/m_ssl_openssl.cpp
@@ -558,7 +558,7 @@ class ModuleSSLOpenSSL : public Module
void VerifyCertificate(issl_session* session, StreamSocket* user)
{
- if (!session->sess || !user || session->cert)
+ if (!session->sess || !user)
return;
X509* cert;