]> git.sur5r.net Git - openldap/commitdiff
ITS#2827 patch from Masato Taruishi
authorHoward Chu <hyc@openldap.org>
Thu, 13 Nov 2003 08:22:03 +0000 (08:22 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 13 Nov 2003 08:22:03 +0000 (08:22 +0000)
servers/slapd/mods.c

index 1d2d9a800cc615514961f7b8b2f359d459989b60..f2c7319db52b5d480987628b3d8902d3031dd717 100644 (file)
@@ -291,7 +291,7 @@ modify_delete_values(
                                snprintf( textbuf, textlen,
                                        "%s: matching rule failed",
                                        mod->sm_desc->ad_cname.bv_val );
-                               goto return_results;
+                               break;
                        }
 
                        if ( match != 0 ) {
@@ -317,7 +317,11 @@ modify_delete_values(
                                "modify/delete: %s: no such value",
                                mod->sm_desc->ad_cname.bv_val );
                        rc = LDAP_NO_SUCH_ATTRIBUTE;
-                       goto return_results;
+                       if ( i > 0 ) {
+                               break;
+                       } else {
+                               goto return_results;
+                       }
                }
        }