From: Pierangelo Masarati Date: Thu, 12 Feb 2009 22:29:13 +0000 (+0000) Subject: fix recursion detection (ITS#5943) X-Git-Tag: ACLCHECK_0~832 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e06771c10aef3b426c0b27f92f7a4455510869db;p=openldap fix recursion detection (ITS#5943) --- diff --git a/servers/slapd/back-relay/op.c b/servers/slapd/back-relay/op.c index 3a2ded273c..4c28483d92 100644 --- a/servers/slapd/back-relay/op.c +++ b/servers/slapd/back-relay/op.c @@ -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 );