summaryrefslogtreecommitdiff
path: root/modules/extra/m_ldap.cpp
diff options
context:
space:
mode:
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);