summaryrefslogtreecommitdiff
path: root/src/modules/extra
diff options
context:
space:
mode:
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-23 14:54:03 +0000
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-23 14:54:03 +0000
commitb55db6058fcaac1c3bb29bf254b6710c8fb293a9 (patch)
tree77a39916aca1e668548f90cd61155ff134a342d4 /src/modules/extra
parent8754ef149a6747af6553cbf084678cdfb16681e4 (diff)
...and stop it segfaulting when you do unload it, ty Brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2859 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/extra')
-rw-r--r--src/modules/extra/m_ssl_gnutls.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp
index f665af0d0..f8ad6af54 100644
--- a/src/modules/extra/m_ssl_gnutls.cpp
+++ b/src/modules/extra/m_ssl_gnutls.cpp
@@ -200,6 +200,7 @@ class ModuleSSL : public Module
{
// User is using SSL, and they're using one of *our* SSL ports.
// Potentially there could be multiple SSL modules loaded at once on different ports.
+ log(DEBUG, "m_ssl_gnutls.so: Adding user %s to cull list", user->nick);
culllist.AddItem(user, "SSL module unloading");
}
}
@@ -212,6 +213,9 @@ class ModuleSSL : public Module
// We're being unloaded, kill all the users added to the cull list in OnCleanup
int numusers = culllist.Apply();
log(DEBUG, "m_ssl_gnutls.so: Killed %d users for unload of GnuTLS SSL module", numusers);
+
+ for(unsigned int i = 0; i < listenports.size(); i++)
+ SrvConf->DelIOHook(listenports[i]);
}
}