From 486bfe7e1722ee499c22628880c7662a8d9d0d75 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Mon, 1 Aug 2005 03:56:36 +0000 Subject: [PATCH] slap_mods2entry(,,,dup=1,,,) realloced insufficient space for attr->a_nvals --- servers/slapd/add.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ); -- 2.39.5