mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-01 20:49:35 -05:00
ITS#5450 fully terminate value lists
This commit is contained in:
parent
e1f518ef1c
commit
d989f19668
2 changed files with 2 additions and 1 deletions
|
|
@ -283,7 +283,7 @@ int bdb_modify_internal(
|
|||
/* attribute was completely deleted */
|
||||
vals = ap->a_nvals;
|
||||
}
|
||||
if ( !BER_BVISEMPTY( vals )) {
|
||||
if ( !BER_BVISNULL( vals )) {
|
||||
rc = bdb_index_values( op, tid, ap->a_desc,
|
||||
vals, e->e_id, SLAP_INDEX_DELETE_OP );
|
||||
if ( rc != LDAP_SUCCESS ) {
|
||||
|
|
|
|||
|
|
@ -589,6 +589,7 @@ int slap_mods_check(
|
|||
ml->sml_values[nvals] = pval;
|
||||
}
|
||||
}
|
||||
ml->sml_values[nvals].bv_len = 0;
|
||||
ml->sml_numvals = nvals;
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue