From b55db6058fcaac1c3bb29bf254b6710c8fb293a9 Mon Sep 17 00:00:00 2001 From: om Date: Mon, 23 Jan 2006 14:54:03 +0000 Subject: ...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 --- src/modules/extra/m_ssl_gnutls.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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]); } } -- cgit v1.2.3