ITS#7029 fix uninit'd nvalue

This commit is contained in:
Howard Chu 2011-08-24 16:09:37 -07:00
parent 4b9d680f55
commit ab69775dd0

View File

@ -1845,6 +1845,8 @@ static Modifications *mods_dup( Operation *op, Modifications *modlist, int match
for (i=0; i<mod->sml_numvals; i++)
mod->sml_nvalues[i] = modlist->sml_nvalues[i];
BER_BVZERO(&mod->sml_nvalues[i]);
} else {
mod->sml_nvalues = NULL;
}
}
if ( match < 0 && modlist->sml_op == LDAP_MOD_REPLACE )