From a120b22f5e23a13b6d4f04f01ad9f7bdae435202 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Tue, 7 Jul 2015 15:07:10 +0200 Subject: m_ssl_openssl Remove NULL check of the session in OpenSSLIOHook constructor --- src/modules/extra/m_ssl_openssl.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp index 6d3eef393..fc7212999 100644 --- a/src/modules/extra/m_ssl_openssl.cpp +++ b/src/modules/extra/m_ssl_openssl.cpp @@ -544,8 +544,6 @@ class OpenSSLIOHook : public SSLIOHook , data_to_write(false) , profile(sslprofile) { - if (sess == NULL) - return; if (SSL_set_fd(sess, sock->GetFd()) == 0) throw ModuleException("Can't set fd with SSL_set_fd: " + ConvToStr(sock->GetFd())); -- cgit v1.2.3