From: Howard Chu Date: Tue, 17 Mar 2009 18:09:40 +0000 (+0000) Subject: ITS#6012 don't abort NULL txns (blind fix) X-Git-Tag: ACLCHECK_0~671 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ba75a865d71290e69c50df49971b3dd0c6fafa1f;p=openldap ITS#6012 don't abort NULL txns (blind fix) --- diff --git a/servers/slapd/back-bdb/cache.c b/servers/slapd/back-bdb/cache.c index 671e36b2e7..7cd34038b1 100644 --- a/servers/slapd/back-bdb/cache.c +++ b/servers/slapd/back-bdb/cache.c @@ -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 */