From ebf7338b8b202b024e40ee5ddd7e0a926064e524 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Wed, 26 Sep 2007 20:57:25 +0000 Subject: [PATCH] temporary fix to ITS#5154 --- servers/slapd/back-meta/bind.c | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.39.5