From 2a2156b8248d8be4861e7f4446e901bf7df6f02c Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 23 Jan 2006 08:42:00 +0000 Subject: Don't try and CloseSession remote users! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2854 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_ssl_gnutls.cpp | 4 +++- 1 file changed, 3 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 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 -- cgit v1.2.3