]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
m_ssl_openssl Return an error from the IOHook read and write functions if the handsha...
authorAttila Molnar <attilamolnar@hush.com>
Tue, 14 Oct 2014 15:52:41 +0000 (17:52 +0200)
committerAttila Molnar <attilamolnar@hush.com>
Tue, 14 Oct 2014 15:52:41 +0000 (17:52 +0200)
The meaning of a 0 return value quoted from the manual:
The TLS/SSL handshake was not successful but was shut down controlled and by the specifications of the TLS/SSL protocol.

src/modules/extra/m_ssl_openssl.cpp

index 8a575466e4baf076b1c3bead1d7bce4553291125..e9b5c4052e1858e0472add603aa70138880bd14f 100644 (file)
@@ -644,7 +644,7 @@ class ModuleSSLOpenSSL : public Module
                else if (ret == 0)
                {
                        CloseSession(session);
-                       return true;
+                       return false;
                }
 
                return true;