From: Luke Howard Date: Sun, 31 Jul 2005 05:04:37 +0000 (+0000) Subject: Fix logic error in slap_mods_no_repl_user_mod_check() X-Git-Tag: OPENLDAP_AC_BP~137 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=40ec064b664ff57f6f9cb3b03ce98daea30c89bb;p=openldap Fix logic error in slap_mods_no_repl_user_mod_check() --- 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 );