From 1e2aa07101e4a777d7e1d1db0544feafd0fe65d9 Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Sun, 19 Sep 2010 16:31:58 -0400 Subject: A zero return from gnutls_record_send is not an error --- src/modules/extra/m_ssl_gnutls.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/modules') diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp index b34e2f9eb..ff7a1654b 100644 --- a/src/modules/extra/m_ssl_gnutls.cpp +++ b/src/modules/extra/m_ssl_gnutls.cpp @@ -520,17 +520,11 @@ class ModuleSSLGnuTLS : public Module ServerInstance->SE->ChangeEventMask(user, FD_WANT_SINGLE_WRITE); return 0; } - else if (ret == GNUTLS_E_AGAIN || ret == GNUTLS_E_INTERRUPTED) + else if (ret == GNUTLS_E_AGAIN || ret == GNUTLS_E_INTERRUPTED || ret == 0) { ServerInstance->SE->ChangeEventMask(user, FD_WANT_SINGLE_WRITE); return 0; } - else if (ret == 0) - { - CloseSession(session); - user->SetError("SSL Connection closed"); - return -1; - } else // (ret < 0) { user->SetError(gnutls_strerror(ret)); -- cgit v1.2.3