ITS#5450 fully terminate value lists

This commit is contained in:
Howard Chu 2008-04-04 00:01:02 +00:00
parent e1f518ef1c
commit d989f19668
2 changed files with 2 additions and 1 deletions

View file

@ -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 ) {

View file

@ -589,6 +589,7 @@ int slap_mods_check(
ml->sml_values[nvals] = pval;
}
}
ml->sml_values[nvals].bv_len = 0;
ml->sml_numvals = nvals;
/*