mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
More for multival attrs
check for enumerated delete that deletes all values
This commit is contained in:
parent
bbc15ab657
commit
131203ec5d
@ -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 New Issue
Block a user