From cbd66ce407ec6d6a9106761ba9e58270ca37123f Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Thu, 8 Nov 2012 19:35:17 +0100 Subject: m_ssl_gnutls, m_ssl_openssl Set error message for the socket to "Connection closed" whenever the ssl connection is closed --- src/modules/extra/m_ssl_gnutls.cpp | 2 +- src/modules/extra/m_ssl_openssl.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src/modules') 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) -- cgit v1.2.3