diff --git a/servers/slapd/back-mdb/attr.c b/servers/slapd/back-mdb/attr.c index 8faf17a59c..31683d2c44 100644 --- a/servers/slapd/back-mdb/attr.c +++ b/servers/slapd/back-mdb/attr.c @@ -162,8 +162,10 @@ mdb_attr_dbs_close( { int i; for ( i=0; imi_nattrs; i++ ) - if ( mdb->mi_attrs[i]->ai_dbi ) + if ( mdb->mi_attrs[i]->ai_dbi ) { mdb_close( mdb->mi_dbenv, mdb->mi_attrs[i]->ai_dbi ); + mdb->mi_attrs[i]->ai_dbi = 0; + } } int