mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
ITS#7029 fix uninit'd nvalue
This commit is contained in:
parent
4b9d680f55
commit
ab69775dd0
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user