mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +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 ) {
|
if ( mod->sm_numvals ) {
|
||||||
anew = attr_find( e->e_attrs, mod->sm_desc );
|
anew = attr_find( e->e_attrs, mod->sm_desc );
|
||||||
if ( anew->a_numvals < mdb->mi_multi_lo ) {
|
if ( anew ) {
|
||||||
anew->a_flags ^= SLAP_ATTR_BIG_MULTI;
|
if ( anew->a_numvals < mdb->mi_multi_lo ) {
|
||||||
anew = NULL;
|
anew->a_flags ^= SLAP_ATTR_BIG_MULTI;
|
||||||
} else {
|
anew = NULL;
|
||||||
anew = (Attribute *)mod;
|
} else {
|
||||||
|
anew = (Attribute *)mod;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
anew = NULL;
|
anew = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user