]> git.sur5r.net Git - openldap/commitdiff
temporary fix to ITS#5154
authorPierangelo Masarati <ando@openldap.org>
Wed, 26 Sep 2007 20:57:25 +0000 (20:57 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 26 Sep 2007 20:57:25 +0000 (20:57 +0000)
servers/slapd/back-meta/bind.c

index 9b7d7c54056951801a39acc6ea8c07638fcc1e6c..9a496fc8ff43bc62cf961a5a038359cd5a18f3fc 100644 (file)
@@ -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