mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 17:49:59 -05:00
slap_mods2entry(,,,dup=1,,,) realloced insufficient space for attr->a_nvals
This commit is contained in:
parent
f9e505727e
commit
486bfe7e17
1 changed files with 2 additions and 1 deletions
|
|
@ -447,7 +447,8 @@ slap_mods2entry(
|
|||
for ( j = 0; mods->sml_values[j].bv_val; j++ ) {
|
||||
ber_dupbv( &attr->a_vals[i+j], &mods->sml_values[j] );
|
||||
}
|
||||
BER_BVZERO( &attr->a_vals[i+j] );
|
||||
BER_BVZERO( &attr->a_vals[i+j] );
|
||||
j++;
|
||||
} else {
|
||||
AC_MEMCPY( &attr->a_vals[i], mods->sml_values,
|
||||
sizeof( struct berval ) * j );
|
||||
|
|
|
|||
Loading…
Reference in a new issue