]> git.sur5r.net Git - openldap/commitdiff
Fix logic error in slap_mods_no_repl_user_mod_check()
authorLuke Howard <lukeh@openldap.org>
Sun, 31 Jul 2005 05:04:37 +0000 (05:04 +0000)
committerLuke Howard <lukeh@openldap.org>
Sun, 31 Jul 2005 05:04:37 +0000 (05:04 +0000)
servers/slapd/modify.c

index efa03812d9e9ee1c93f50fe36bd93ac8a4f78a98..12ac2da1fbb5ad1172dacb196d166c3f64198792 100644 (file)
@@ -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 );