part of o_csn memory handling cleanup

This commit is contained in:
Pierangelo Masarati 2006-01-06 16:32:33 +00:00
parent 857a43d398
commit 3037a199d4

View file

@ -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 ) {