From 1ec443df53067de13a18392cc3a19fac3c3f04b0 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 16 Nov 2009 10:02:47 +0000 Subject: [PATCH] trim unnecessary test --- servers/slapd/overlays/memberof.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/servers/slapd/overlays/memberof.c b/servers/slapd/overlays/memberof.c index 3388b9dd31..3a38b63373 100644 --- a/servers/slapd/overlays/memberof.c +++ b/servers/slapd/overlays/memberof.c @@ -224,16 +224,8 @@ memberof_saveMember_cb( Operation *op, SlapReply *rs ) a = attr_find( rs->sr_entry->e_attrs, mc->ad ); if ( a != NULL ) { ber_bvarray_dup_x( &mc->vals, a->a_nvals, op->o_tmpmemctx ); - } - if ( a && attr_find( a->a_next, mc->ad ) != NULL ) { - Debug( LDAP_DEBUG_ANY, - "%s: memberof_saveMember_cb(\"%s\"): " - "more than one occurrence of \"%s\" " - "attribute.\n", - op->o_log_prefix, - rs->sr_entry->e_name.bv_val, - mc->ad->ad_cname.bv_val ); + assert( attr_find( a->a_next, mc->ad ) == NULL ); } } -- 2.39.5