rearrange error handling

This commit is contained in:
Pierangelo Masarati 2006-09-11 21:04:25 +00:00
parent 8eb455e7b2
commit 1ab4c624ed

View File

@ -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 );