diff options
-rw-r--r-- | src/modules/extra/m_ssl_gnutls.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp index 2bdb0a24e..0982eef23 100644 --- a/src/modules/extra/m_ssl_gnutls.cpp +++ b/src/modules/extra/m_ssl_gnutls.cpp @@ -383,7 +383,9 @@ class ModuleSSL : public Module virtual void OnUserQuit(userrec* user, std::string reason) { - CloseSession(&sessions[user->fd]); + /* Fix by brain: Don't bork on remote user */ + if ((user->fd > -1) && (user->GetExt("ssl"))) + CloseSession(&sessions[user->fd]); } // :kenny.chatspike.net 320 Om Epy|AFK :is a Secure Connection |