summaryrefslogtreecommitdiff
path: root/src/modules/extra/m_ssl_gnutls.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-06-24 16:27:16 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-06-24 16:27:16 +0000
commit8a3bcebffc063457b0e49f87ac5d80d18994e3f0 (patch)
tree88a889e86186234d5f8242889d5fe56dcb4643de /src/modules/extra/m_ssl_gnutls.cpp
parent999f4d2f143bf730f0e346921a8fa687936a79cf (diff)
This is more correct, thanks Phoenix
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9932 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/extra/m_ssl_gnutls.cpp')
-rw-r--r--src/modules/extra/m_ssl_gnutls.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp
index fb50c0f09..9d9e08d4c 100644
--- a/src/modules/extra/m_ssl_gnutls.cpp
+++ b/src/modules/extra/m_ssl_gnutls.cpp
@@ -293,11 +293,12 @@ class ModuleSSLGnuTLS : public Module
{
User* user = (User*)item;
- if(user->io)
+ if (user->io == this)
{
// User is using SSL, they're a local user, and they're using one of *our* SSL ports.
// Potentially there could be multiple SSL modules loaded at once on different ports.
ServerInstance->Users->QuitUser(user, "SSL module unloading");
+ user->io = NULL;
}
if (user->GetExt("ssl_cert", dummy))
{
@@ -306,8 +307,6 @@ class ModuleSSLGnuTLS : public Module
delete tofree;
user->Shrink("ssl_cert");
}
-
- user->io = NULL;
}
}