From: Pierangelo Masarati Date: Fri, 6 Jan 2006 16:32:33 +0000 (+0000) Subject: part of o_csn memory handling cleanup X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~433 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3037a199d43ce514bdef3eccd879bcac01be8751;p=openldap part of o_csn memory handling cleanup --- diff --git a/servers/slapd/back-bdb/delete.c b/servers/slapd/back-bdb/delete.c index 15040c8c1e..a8d144b631 100644 --- a/servers/slapd/back-bdb/delete.c +++ b/servers/slapd/back-bdb/delete.c @@ -388,8 +388,10 @@ retry: /* transaction retry */ /* fixup delete CSN */ if ( !SLAP_SHADOW( op->o_bd )) { struct berval vals[2]; + + assert( !BER_BVISNULL( &op->o_csn ) ); vals[0] = op->o_csn; - BER_BVZERO( vals+1 ); + BER_BVZERO( &vals[1] ); rs->sr_err = bdb_index_values( op, lt2, slap_schema.si_ad_entryCSN, vals, 0, SLAP_INDEX_ADD_OP ); if ( rs->sr_err != LDAP_SUCCESS ) {