summaryrefslogtreecommitdiff
path: root/modules/extra/m_ldap.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-03-05 18:18:51 -0500
committerAdam <Adam@anope.org>2011-03-05 18:18:51 -0500
commitef0c0957126dea31eb1ee5acf28b6d9f6833b60c (patch)
tree6f401cf7ac99d7aedf858d8309ba0a6cff14e983 /modules/extra/m_ldap.cpp
parenta0355dfd9de6d7366ed23e62e16d1e945dd28776 (diff)
Made m_ldap_oper understand deopering
Diffstat (limited to 'modules/extra/m_ldap.cpp')
-rw-r--r--modules/extra/m_ldap.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/modules/extra/m_ldap.cpp b/modules/extra/m_ldap.cpp
index 1d5aeca09..47c0c4067 100644
--- a/modules/extra/m_ldap.cpp
+++ b/modules/extra/m_ldap.cpp
@@ -115,7 +115,6 @@ class LDAPService : public LDAPProvider, public Thread, public Condition
if (type <= 0 || this->GetExitState())
continue;
- bool notify = false;
int cur_id = ldap_msgid(result);
this->Lock();
@@ -152,7 +151,6 @@ class LDAPService : public LDAPProvider, public Thread, public Condition
ldap_result->error = ldap_err2string(parse_result);
else if (errcode != LDAP_SUCCESS)
ldap_result->error = ldap_err2string(errcode);
- notify = true;
break;
}
case LDAP_RES_SEARCH_ENTRY:
@@ -175,7 +173,6 @@ class LDAPService : public LDAPProvider, public Thread, public Condition
if (ber != NULL)
ber_free(ber, 0);
- notify = true;
break;
}
default:
@@ -192,8 +189,7 @@ class LDAPService : public LDAPProvider, public Thread, public Condition
this->results.push_back(std::make_pair(i, ldap_result));
this->Unlock();
- if (notify)
- me->Notify();
+ me->Notify();
}
}