summaryrefslogtreecommitdiffstats
path: root/ldap/servers/slapd/entrywsi.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldap/servers/slapd/entrywsi.c')
-rw-r--r--ldap/servers/slapd/entrywsi.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ldap/servers/slapd/entrywsi.c b/ldap/servers/slapd/entrywsi.c
index 53a5fa3e..9923f57f 100644
--- a/ldap/servers/slapd/entrywsi.c
+++ b/ldap/servers/slapd/entrywsi.c
@@ -497,7 +497,10 @@ entry_add_present_values_wsi(Slapi_Entry *e, const char *type, struct berval **b
break;
}
/* Check if any of the values to be added are on the deleted list */
- valueset_remove_valuearray(&a->a_deleted_values, a, valuestoadd, SLAPI_VALUE_FLAG_IGNOREERROR,&deletedvalues); /* JCM Check return code */
+ valueset_remove_valuearray(&a->a_deleted_values,
+ a, valuestoadd,
+ SLAPI_VALUE_FLAG_IGNOREERROR|SLAPI_VALUE_FLAG_USENEWVALUE,
+ &deletedvalues); /* JCM Check return code */
if(deletedvalues!=NULL && deletedvalues[0]!=NULL)
{
/* Some of the values to be added were on the deleted list */