mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 17:49:59 -05:00
don't leave dangling conns in the AVL tree
This commit is contained in:
parent
5b317f5b85
commit
e4d24ecce8
1 changed files with 4 additions and 2 deletions
|
|
@ -1418,14 +1418,16 @@ ldap_back_retry( ldapconn_t **lcp, Operation *op, SlapReply *rs, ldap_back_send_
|
|||
if ( rc != LDAP_SUCCESS ) {
|
||||
rc = 0;
|
||||
/* freeit, because lc_refcnt == 1 */
|
||||
(void)ldap_back_conn_free( *lcp );
|
||||
(*lcp)->lc_refcnt = 0;
|
||||
(void)ldap_back_freeconn( op, *lcp, 0 );
|
||||
*lcp = NULL;
|
||||
|
||||
} else {
|
||||
rc = ldap_back_dobind_int( *lcp, op, rs, sendok, 0, 0 );
|
||||
if ( rc == 0 && *lcp != NULL ) {
|
||||
/* freeit, because lc_refcnt == 1 */
|
||||
(void)ldap_back_conn_free( *lcp );
|
||||
(*lcp)->lc_refcnt = 0;
|
||||
(void)ldap_back_freeconn( op, *lcp, 0 );
|
||||
*lcp = NULL;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue