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:
@@ -221,6 +221,8 @@ class ModuleLDAP : public Module, public Pipe
|
||||
{
|
||||
it->second->SetExitState();
|
||||
it->second->Wakeup();
|
||||
it->second->Join();
|
||||
delete it->second;
|
||||
}
|
||||
LDAPServices.clear();
|
||||
}
|
||||
|
||||
@@ -217,7 +217,7 @@ class NSIdentifyLDAP : public Module
|
||||
|
||||
void OnNickIdentify(User *u)
|
||||
{
|
||||
if (email_attribute.empty())
|
||||
if (email_attribute.empty() || !this->ldap)
|
||||
return;
|
||||
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user