From: Pierangelo Masarati Date: Thu, 11 Nov 2004 13:12:34 +0000 (+0000) Subject: make sure we're comparing the same database X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~340 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dd367a2b780db0eea2c8b5b17e8605bc84569b84;p=openldap make sure we're comparing the same database --- diff --git a/servers/slapd/back-ldap/bind.c b/servers/slapd/back-ldap/bind.c index 0bd908f5b0..dd660a7295 100644 --- a/servers/slapd/back-ldap/bind.c +++ b/servers/slapd/back-ldap/bind.c @@ -235,7 +235,9 @@ ldap_back_getconn(Operation *op, SlapReply *rs) /* Explicit binds must not be shared */ if ( op->o_tag == LDAP_REQ_BIND - || ( op->o_conn && op->o_bd == op->o_conn->c_authz_backend ) ) { + || ( op->o_conn + && op->o_conn->c_authz_backend + && op->o_bd->be_private == op->o_conn->c_authz_backend->be_private ) ) { lc_curr.conn = op->o_conn; } else {