From: Pierangelo Masarati Date: Wed, 26 Sep 2007 20:57:25 +0000 (+0000) Subject: temporary fix to ITS#5154 X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~594 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ebf7338b8b202b024e40ee5ddd7e0a926064e524;p=openldap temporary fix to ITS#5154 --- diff --git a/servers/slapd/back-meta/bind.c b/servers/slapd/back-meta/bind.c index 9b7d7c5405..9a496fc8ff 100644 --- a/servers/slapd/back-meta/bind.c +++ b/servers/slapd/back-meta/bind.c @@ -189,6 +189,10 @@ meta_back_bind( Operation *op, SlapReply *rs ) if ( lerr != LDAP_SUCCESS ) { rc = rs->sr_err = lerr; + /* Mark the meta_conn struct as tainted so + * it'll be freed by meta_conn_back_destroy below */ + LDAP_BACK_CONN_TAINTED_SET( mc ); + /* FIXME: in some cases (e.g. unavailable) * do not assume it's not candidate; rather * mark this as an error to be eventually