]> git.sur5r.net Git - openldap/commitdiff
ITS#6012 don't abort NULL txns (blind fix)
authorHoward Chu <hyc@openldap.org>
Tue, 17 Mar 2009 18:09:40 +0000 (18:09 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 17 Mar 2009 18:09:40 +0000 (18:09 +0000)
servers/slapd/back-bdb/cache.c

index 671e36b2e7983b44fb3ddce5eff5e16ea71e20d5..7cd34038b1f2f2c047742fc170890af6e873943c 100644 (file)
@@ -1482,7 +1482,7 @@ bdb_reader_free( void *key, void *data )
        /* DB_ENV *env = key; */
        DB_TXN *txn = data;
 
-       TXN_ABORT( txn );
+       if ( txn ) TXN_ABORT( txn );
 }
 
 /* free up any keys used by the main thread */