mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-12 10:54:48 +08:00
ITS#3992 check bi_dbenv
This commit is contained in:
parent
a6af143798
commit
8eed3a4bb5
@ -312,8 +312,10 @@ bdb_db_open( BackendDB *be )
|
||||
open_env = 0;
|
||||
} else {
|
||||
/* Create a new env that can take the desired settings */
|
||||
bdb->bi_dbenv->close( bdb->bi_dbenv, 0 );
|
||||
bdb->bi_dbenv = NULL;
|
||||
if ( bdb->bi_dbenv != NULL ) {
|
||||
bdb->bi_dbenv->close( bdb->bi_dbenv, 0 );
|
||||
bdb->bi_dbenv = NULL;
|
||||
}
|
||||
rc = db_env_create( &bdb->bi_dbenv, 0 );
|
||||
if( rc != 0 ) {
|
||||
Debug( LDAP_DEBUG_ANY,
|
||||
|
Loading…
Reference in New Issue
Block a user