summaryrefslogtreecommitdiff
path: root/src/modules/extra
diff options
context:
space:
mode:
authorDaniel De Graaf <danieldg@inspircd.org>2010-09-19 16:31:58 -0400
committerDaniel De Graaf <danieldg@inspircd.org>2010-09-19 16:32:52 -0400
commit1e2aa07101e4a777d7e1d1db0544feafd0fe65d9 (patch)
treec698d2ef6a516012574d9324f59e3af912c2d04f /src/modules/extra
parent7f578746d5fcb5fb4b6ce640071a5c82c982bc61 (diff)
A zero return from gnutls_record_send is not an error
Diffstat (limited to 'src/modules/extra')
-rw-r--r--src/modules/extra/m_ssl_gnutls.cpp8
1 files changed, 1 insertions, 7 deletions
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));