From c043a9c0cf3643bd55852609b0bb00b5f5e7fbad Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Sat, 19 Jan 2002 05:55:18 +0000 Subject: [PATCH] Fix modify/replace. --- servers/slapd/back-bdb/modify.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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; -- 2.39.5