From: Kurt Zeilenga Date: Sat, 19 Jan 2002 05:55:18 +0000 (+0000) Subject: Fix modify/replace. X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~59 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c043a9c0cf3643bd55852609b0bb00b5f5e7fbad;p=openldap Fix modify/replace. --- diff --git a/servers/slapd/back-bdb/modify.c b/servers/slapd/back-bdb/modify.c index 5050bddda8..66df842a08 100644 --- a/servers/slapd/back-bdb/modify.c +++ b/servers/slapd/back-bdb/modify.c @@ -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;