diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-10-14 17:52:41 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-10-14 17:52:41 +0200 |
commit | 6a8e8dae95b9fd74471bd3cef0b6d352426a2973 (patch) | |
tree | a09bb789b1a72eeac30815daa45fcf7101827690 /src/modules/extra | |
parent | 566904ece4aa15cfc90a4452375b54b5daf3baf2 (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/modules/extra')
-rw-r--r-- | src/modules/extra/m_ssl_openssl.cpp | 2 |
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; |