]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Update src/modules/rlm_ldap/rlm_ldap.c
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 22 Aug 2012 13:50:53 +0000 (15:50 +0200)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 22 Aug 2012 13:50:53 +0000 (15:50 +0200)
Add debug message noting the closure

src/modules/rlm_ldap/rlm_ldap.c

index 6b733df156e3b370045e58167b59ad1c0a260b7f..8a4ac0822eef363b4bfb6e5ac0eb2c5fd871b010 100644 (file)
@@ -405,6 +405,7 @@ static inline void ldap_release_conn(int i, ldap_instance *inst)
        DEBUG("  [%s] ldap_release_conn: Release Id: %d", inst->xlat_name, i);
        if ((inst->max_uses > 0) && (conns[i].uses >= inst->max_uses)) {
                if (inst->conns[i].ld){
+                       DEBUG("  [%s] ldap_release_conn: Hit max usage limit, closing Id: %d", inst->xlat_name, i);
                        ldap_unbind_s(inst->conns[i].ld);
                }
                conns[i].bound = 0;