From: Hallvard Furuseth Date: Mon, 1 Aug 2005 03:56:36 +0000 (+0000) Subject: slap_mods2entry(,,,dup=1,,,) realloced insufficient space for attr->a_nvals X-Git-Tag: OPENLDAP_AC_BP~122 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=486bfe7e1722ee499c22628880c7662a8d9d0d75;p=openldap slap_mods2entry(,,,dup=1,,,) realloced insufficient space for attr->a_nvals --- diff --git a/servers/slapd/add.c b/servers/slapd/add.c index 1c23986c61..a2f4e242ac 100644 --- a/servers/slapd/add.c +++ b/servers/slapd/add.c @@ -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 );