]> git.sur5r.net Git - openldap/commitdiff
part of o_csn memory handling cleanup
authorPierangelo Masarati <ando@openldap.org>
Fri, 6 Jan 2006 16:32:33 +0000 (16:32 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 6 Jan 2006 16:32:33 +0000 (16:32 +0000)
servers/slapd/back-bdb/delete.c

index 15040c8c1e0bc0d6ca792e1c5bcbf23017240d64..a8d144b6312dd27544e9b22800fcab57249984ee 100644 (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 ) {