]> git.sur5r.net Git - openldap/commitdiff
Fix modify/replace.
authorKurt Zeilenga <kurt@openldap.org>
Sat, 19 Jan 2002 05:55:18 +0000 (05:55 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 19 Jan 2002 05:55:18 +0000 (05:55 +0000)
servers/slapd/back-bdb/modify.c

index 5050bddda892da46025f4ee33d8507c3a0fd41f7..66df842a08a2cf8ebd0dbfdfa8fb2c96e8ded43f 100644 (file)
@@ -584,15 +584,10 @@ replace_values(
        char    *dn
 )
 {
-       int rc = attr_delete( &e->e_attrs, mod->sm_desc );
-
-       if( rc != LDAP_SUCCESS && rc != LDAP_NO_SUCH_ATTRIBUTE ) {
-               return rc;
-       }
-       rc = LDAP_SUCCESS;
+       (void) attr_delete( &e->e_attrs, mod->sm_desc );
 
        if ( mod->sm_bvalues ) {
-               rc = add_values( e, mod, dn );
+               return add_values( e, mod, dn );
        }
 
        return LDAP_SUCCESS;