From: Howard Chu Date: Fri, 4 Mar 2011 07:54:06 +0000 (+0000) Subject: More for #6561 - delete returns NO_SUCH_ATTRIBUTE, not TYPE_OR_VALUE_EXISTS X-Git-Tag: MIGRATION_CVS2GIT~38 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bfa05a5e3299cf4cb2ca3cb4a39268f5a9961604;p=openldap More for #6561 - delete returns NO_SUCH_ATTRIBUTE, not TYPE_OR_VALUE_EXISTS --- diff --git a/servers/slapd/back-bdb/modify.c b/servers/slapd/back-bdb/modify.c index 896c06fb39..bbf19f3c6a 100644 --- a/servers/slapd/back-bdb/modify.c +++ b/servers/slapd/back-bdb/modify.c @@ -153,7 +153,6 @@ int bdb_modify_internal( mod->sm_desc->ad_cname.bv_val, 0, 0); err = modify_delete_values( e, mod, get_permissiveModify(op), text, textbuf, textlen ); - assert( err != LDAP_TYPE_OR_VALUE_EXISTS ); if( err != LDAP_SUCCESS ) { Debug(LDAP_DEBUG_ARGS, "bdb_modify_internal: %d %s\n", err, *text, 0); @@ -229,7 +228,7 @@ int bdb_modify_internal( mod->sm_op = SLAP_MOD_SOFTDEL; - if ( err == LDAP_TYPE_OR_VALUE_EXISTS ) { + if ( err == LDAP_NO_SUCH_ATTRIBUTE ) { err = LDAP_SUCCESS; }