mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-26 00:32:54 -05:00
More for multival attrs
check for enumerated delete that deletes all values
This commit is contained in:
parent
bbc15ab657
commit
131203ec5d
1 changed files with 7 additions and 5 deletions
|
|
@ -232,11 +232,13 @@ do_del:
|
|||
}
|
||||
if ( mod->sm_numvals ) {
|
||||
anew = attr_find( e->e_attrs, mod->sm_desc );
|
||||
if ( anew->a_numvals < mdb->mi_multi_lo ) {
|
||||
anew->a_flags ^= SLAP_ATTR_BIG_MULTI;
|
||||
anew = NULL;
|
||||
} else {
|
||||
anew = (Attribute *)mod;
|
||||
if ( anew ) {
|
||||
if ( anew->a_numvals < mdb->mi_multi_lo ) {
|
||||
anew->a_flags ^= SLAP_ATTR_BIG_MULTI;
|
||||
anew = NULL;
|
||||
} else {
|
||||
anew = (Attribute *)mod;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
anew = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue