mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Fix memory smasher in slapi_x_modifications2ldapmods()
This commit is contained in:
parent
1e8fd55cfb
commit
24e14748aa
@ -2492,6 +2492,7 @@ LDAPMod **slapi_x_modifications2ldapmods(Modifications **pmodlist)
|
||||
mods = (LDAPMod **)ch_malloc( (i + 1) * sizeof(LDAPMod *) );
|
||||
|
||||
for( i = 0, ml = modlist; ml != NULL; ml = ml->sml_next ) {
|
||||
mods[i] = (LDAPMod *)ch_malloc( sizeof(LDAPMod) );
|
||||
modp = mods[i];
|
||||
modp->mod_op = ml->sml_op | LDAP_MOD_BVALUES;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user