From e06771c10aef3b426c0b27f92f7a4455510869db Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 12 Feb 2009 22:29:13 +0000 Subject: [PATCH] fix recursion detection (ITS#5943) --- servers/slapd/back-relay/op.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.39.5