From: Arran Cudbard-Bell Date: Wed, 12 Aug 2015 17:01:00 +0000 (-0400) Subject: ldap_next_entry requires the previous entry X-Git-Tag: release_3_0_10~247 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d50ec64f090c4534e7d7ed1989c6bc7c2267058;p=thirdparty%2Ffreeradius-server.git ldap_next_entry requires the previous entry --- diff --git a/src/modules/rlm_ldap/ldap.c b/src/modules/rlm_ldap/ldap.c index 8aa142e776d..cadfc60c2c2 100644 --- a/src/modules/rlm_ldap/ldap.c +++ b/src/modules/rlm_ldap/ldap.c @@ -1168,7 +1168,7 @@ char const *rlm_ldap_find_user(rlm_ldap_t const *inst, REQUEST *request, ldap_ha RINDENT(); for (entry = ldap_first_entry((*pconn)->handle, *result); entry; - entry = ldap_next_entry((*pconn)->handle, NULL)) { + entry = ldap_next_entry((*pconn)->handle, entry)) { dn = ldap_get_dn((*pconn)->handle, entry); REDEBUG("%s", dn); ldap_memfree(dn);