From 40ec064b664ff57f6f9cb3b03ce98daea30c89bb Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Sun, 31 Jul 2005 05:04:37 +0000 Subject: [PATCH] Fix logic error in slap_mods_no_repl_user_mod_check() --- servers/slapd/modify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/modify.c b/servers/slapd/modify.c index efa03812d9..12ac2da1fb 100644 --- a/servers/slapd/modify.c +++ b/servers/slapd/modify.c @@ -541,7 +541,7 @@ slap_mods_no_repl_user_mod_check( /* check doesn't already appear */ for ( modp = ml; modp != NULL; modp = modp->sml_next ) { - if ( mods->sml_desc == modp->sml_desc ) { + if ( mods->sml_desc == modp->sml_desc && mods != modp ) { snprintf( textbuf, textlen, "attribute '%s' provided more than once", mods->sml_desc->ad_cname.bv_val ); -- 2.39.5