From 1ab4c624ed272554c84092f8ceb03219ed1b1dcf Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 11 Sep 2006 21:04:25 +0000 Subject: [PATCH] rearrange error handling --- servers/slapd/back-ldap/bind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/back-ldap/bind.c b/servers/slapd/back-ldap/bind.c index 1557de1e0a..d408252bce 100644 --- a/servers/slapd/back-ldap/bind.c +++ b/servers/slapd/back-ldap/bind.c @@ -1467,11 +1467,11 @@ ldap_back_retry( ldapconn_t **lcp, Operation *op, SlapReply *rs, ldap_back_send_ /* lc here must be the regular lc, reset and ready for init */ rc = ldap_back_prepare_conn( lcp, op, rs, sendok ); if ( rc != LDAP_SUCCESS ) { - rc = 0; /* freeit, because lc_refcnt == 1 */ (*lcp)->lc_refcnt = 0; (void)ldap_back_freeconn( op, *lcp, 0 ); *lcp = NULL; + rc = 0; } else { rc = ldap_back_dobind_int( *lcp, op, rs, sendok, 0, 0 ); -- 2.39.5