From: Quanah Gibson-Mount Date: Wed, 28 Nov 2007 23:27:16 +0000 (+0000) Subject: Fix for ITS#5225 X-Git-Tag: OPENLDAP_REL_ENG_2_3_40~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=219779952a29f0e04bc1c13a3e7749f463e23cfb;p=thirdparty%2Fopenldap.git Fix for ITS#5225 --- diff --git a/servers/slapd/back-bdb/tools.c b/servers/slapd/back-bdb/tools.c index a8c07423c9..e75a180864 100644 --- a/servers/slapd/back-bdb/tools.c +++ b/servers/slapd/back-bdb/tools.c @@ -664,6 +664,10 @@ ID bdb_tool_entry_modify( (long) e->e_id, e->e_dn, 0 ); if (! (slapMode & SLAP_TOOL_QUICK)) { + if( cursor ) { + cursor->c_close( cursor ); + cursor = NULL; + } rc = TXN_BEGIN( bdb->bi_dbenv, NULL, &tid, bdb->bi_db_opflags ); if( rc != 0 ) {