summaryrefslogtreecommitdiff
path: root/src/modules/extra
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-23 08:42:00 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-23 08:42:00 +0000
commit2a2156b8248d8be4861e7f4446e901bf7df6f02c (patch)
tree57543f4bbf9a2f3492f014b427a7318a61ec887b /src/modules/extra
parent91c8845eaf90f941444aab540d021cb79667b080 (diff)
Don't try and CloseSession remote users!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2854 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/extra')
-rw-r--r--src/modules/extra/m_ssl_gnutls.cpp4
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