ITS#9288 Do no change tainted status on failed retry

It seems refcnt == 0 connections are tainted only if they were just
removed from cache.
This commit is contained in:
Ondřej Kuzník 2021-02-26 09:00:39 +00:00 committed by Quanah Gibson-Mount
parent 1e3e6cdd4a
commit 99efeda06f

View File

@ -2022,7 +2022,6 @@ ldap_back_retry( ldapconn_t **lcp, Operation *op, SlapReply *rs, ldap_back_send_
if ( rc == 0 && *lcp != NULL ) {
/* freeit, because lc_refcnt == 1 */
(*lcp)->lc_refcnt = 0;
LDAP_BACK_CONN_TAINTED_SET( *lcp );
(void)ldap_back_freeconn( li, *lcp, 0 );
*lcp = NULL;
}