summaryrefslogtreecommitdiff
path: root/modules/extra/m_ldap.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-01-25 15:48:07 -0500
committerAdam <Adam@anope.org>2012-01-25 15:48:07 -0500
commit52eaa7d6d61e3373340fd5a69b92b0fb3b5609e0 (patch)
tree428f2b440ab5675ae3a9c19ae5b813f132497c79 /modules/extra/m_ldap.cpp
parente88e37c59b45cc43b714d1d28719eb3c2ca9579a (diff)
Windows
Diffstat (limited to 'modules/extra/m_ldap.cpp')
-rw-r--r--modules/extra/m_ldap.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/extra/m_ldap.cpp b/modules/extra/m_ldap.cpp
index bdb573675..835215533 100644
--- a/modules/extra/m_ldap.cpp
+++ b/modules/extra/m_ldap.cpp
@@ -214,8 +214,8 @@ class LDAPService : public LDAPProvider, public Thread, public Condition
static struct timeval tv = { 1, 0 };
LDAPMessage *result;
- int type = ldap_result(this->con, LDAP_RES_ANY, 1, &tv, &result);
- if (type <= 0 || this->GetExitState())
+ int rtype = ldap_result(this->con, LDAP_RES_ANY, 1, &tv, &result);
+ if (rtype <= 0 || this->GetExitState())
continue;
int cur_id = ldap_msgid(result);