From: Pierangelo Masarati Date: Mon, 11 Sep 2006 21:04:25 +0000 (+0000) Subject: rearrange error handling X-Git-Tag: OPENLDAP_REL_ENG_2_3_MP~170 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1ab4c624ed272554c84092f8ceb03219ed1b1dcf;p=openldap rearrange error handling --- 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 );