1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 12:03:12 +02:00

Fixed a crash in m_ldap is unloaded

This commit is contained in:
Adam
2011-03-13 22:59:50 -04:00
parent beabbb3a20
commit 4fe49af840
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -221,6 +221,8 @@ class ModuleLDAP : public Module, public Pipe
{
it->second->SetExitState();
it->second->Wakeup();
it->second->Join();
delete it->second;
}
LDAPServices.clear();
}
+1 -1
View File
@@ -217,7 +217,7 @@ class NSIdentifyLDAP : public Module
void OnNickIdentify(User *u)
{
if (email_attribute.empty())
if (email_attribute.empty() || !this->ldap)
return;
try