From 3037a199d43ce514bdef3eccd879bcac01be8751 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Fri, 6 Jan 2006 16:32:33 +0000 Subject: [PATCH] part of o_csn memory handling cleanup --- servers/slapd/back-bdb/delete.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ) { -- 2.39.5