summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-10-14 17:52:41 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-10-14 17:52:41 +0200
commit6a8e8dae95b9fd74471bd3cef0b6d352426a2973 (patch)
treea09bb789b1a72eeac30815daa45fcf7101827690 /src
parent566904ece4aa15cfc90a4452375b54b5daf3baf2 (diff)
m_ssl_openssl Return an error from the IOHook read and write functions if the handshake returns 0
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.
Diffstat (limited to 'src')
-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 8a575466e..e9b5c4052 100644
--- a/src/modules/extra/m_ssl_openssl.cpp
+++ b/src/modules/extra/m_ssl_openssl.cpp
@@ -644,7 +644,7 @@ class ModuleSSLOpenSSL : public Module
else if (ret == 0)
{
CloseSession(session);
- return true;
+ return false;
}
return true;