mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-02 04:59:39 -05:00
Fix modify/replace.
This commit is contained in:
parent
b713f42650
commit
c043a9c0cf
1 changed files with 2 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue