]> git.sur5r.net Git - openldap/commitdiff
make sure we only get here when everything is fine
authorPierangelo Masarati <ando@openldap.org>
Sat, 10 Jul 2004 11:41:28 +0000 (11:41 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 10 Jul 2004 11:41:28 +0000 (11:41 +0000)
servers/slapd/back-bdb/ctxcsn.c

index 14c83edc0ea3348ce2fa902f035cfa844642f0a6..7c2b31ec366244d775d8dafc561c6a3b0ed7ef76 100644 (file)
@@ -50,6 +50,8 @@ bdb_csn_commit(
        size_t                  textlen = sizeof textbuf;
        EntryInfo               *eip = NULL;
 
+       assert( !BER_BVISNULL( &op->o_bd->be_context_csn ) );
+
        if ( ei ) {
                e = ei->bei_e;
        }