]> git.sur5r.net Git - openldap/commitdiff
fix recursion detection (ITS#5943)
authorPierangelo Masarati <ando@openldap.org>
Thu, 12 Feb 2009 22:29:13 +0000 (22:29 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 12 Feb 2009 22:29:13 +0000 (22:29 +0000)
servers/slapd/back-relay/op.c

index 3a2ded273c92a37903bd4f4ea1e88b05613ca3ce..4c28483d92a6c711aa6d569730adaf2acf93eb8d 100644 (file)
@@ -74,7 +74,7 @@ relay_back_select_backend( Operation *op, SlapReply *rs, slap_mask_t fail_mode )
 
        if ( bd == NULL && !BER_BVISNULL( &op->o_req_ndn ) ) {
                bd = select_backend( &op->o_req_ndn, 1 );
-               if ( bd == op->o_bd ) {
+               if ( bd->be_private == op->o_bd->be_private ) {
                        Debug( LDAP_DEBUG_ANY,
                                "%s: back-relay for DN=\"%s\" would call self.\n",
                                op->o_log_prefix, op->o_req_dn.bv_val, 0 );