]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
m_ssl_openssl Remove NULL check of the session in OpenSSLIOHook constructor
authorAttila Molnar <attilamolnar@hush.com>
Tue, 7 Jul 2015 13:07:10 +0000 (15:07 +0200)
committerAttila Molnar <attilamolnar@hush.com>
Tue, 7 Jul 2015 13:07:10 +0000 (15:07 +0200)
src/modules/extra/m_ssl_openssl.cpp

index 6d3eef3933af3009d51876296e55072a333e1a44..fc7212999640d80e7b569bca1045df037ce60fa1 100644 (file)
@@ -544,8 +544,6 @@ class OpenSSLIOHook : public SSLIOHook
                , data_to_write(false)
                , profile(sslprofile)
        {
                , 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()));
 
                if (SSL_set_fd(sess, sock->GetFd()) == 0)
                        throw ModuleException("Can't set fd with SSL_set_fd: " + ConvToStr(sock->GetFd()));