]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9288 Do no change tainted status on failed retry
authorOndřej Kuzník <ondra@mistotebe.net>
Fri, 26 Feb 2021 09:00:39 +0000 (09:00 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 2 Mar 2021 20:00:55 +0000 (20:00 +0000)
It seems refcnt == 0 connections are tainted only if they were just
removed from cache.

servers/slapd/back-ldap/bind.c

index 68ab46224fd26dd7e5d3745199bf492cf5b92330..395112504a55308641fcb0b01aaa15567994c259 100644 (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;
                        }