diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-11-08 19:35:17 +0100 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2012-11-09 16:41:21 +0100 |
commit | cbd66ce407ec6d6a9106761ba9e58270ca37123f (patch) | |
tree | ea7ef1e53b59af7ef8c51f2ca858de946ccf2201 /src/modules/extra | |
parent | 80cb9f38fb4601b6147dfabb6b517134646ec7fb (diff) |
m_ssl_gnutls, m_ssl_openssl Set error message for the socket to "Connection closed" whenever the ssl connection is closed
Diffstat (limited to 'src/modules/extra')
-rw-r--r-- | src/modules/extra/m_ssl_gnutls.cpp | 2 | ||||
-rw-r--r-- | src/modules/extra/m_ssl_openssl.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp index faa8b0537..db69b6557 100644 --- a/src/modules/extra/m_ssl_gnutls.cpp +++ b/src/modules/extra/m_ssl_gnutls.cpp @@ -548,7 +548,7 @@ class ModuleSSLGnuTLS : public Module } else if (ret == 0) { - user->SetError("SSL Connection closed"); + user->SetError("Connection closed"); CloseSession(session); return -1; } diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp index 8a736e121..90ad3996b 100644 --- a/src/modules/extra/m_ssl_openssl.cpp +++ b/src/modules/extra/m_ssl_openssl.cpp @@ -423,6 +423,7 @@ class ModuleSSLOpenSSL : public Module { // Client closed connection. CloseSession(session); + user->SetError("Connection closed"); return -1; } else if (ret < 0) |