From fbccd7e83126ca1ad3e14291aaf771ef4f77121a Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 23 Jan 2006 13:59:43 +0000 Subject: Fixed OnUserQuit... again. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2856 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_ssl_gnutls.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp index eb3ec4f74..b496b5706 100644 --- a/src/modules/extra/m_ssl_gnutls.cpp +++ b/src/modules/extra/m_ssl_gnutls.cpp @@ -402,7 +402,8 @@ class ModuleSSL : public Module virtual void OnUserQuit(userrec* user, std::string reason) { - CloseSession(&sessions[user->fd]); + if (user->fd > -1) + CloseSession(&sessions[user->fd]); } // :kenny.chatspike.net 320 Om Epy|AFK :is a Secure Connection -- cgit v1.2.3