mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-17 14:00:30 +08:00
ITS#5435 ConfigReply arg must be non-NULL
This commit is contained in:
parent
261d2420f4
commit
294da7ed11
@ -337,9 +337,9 @@ bdb_cf_cleanup( ConfigArgs *c )
|
||||
|
||||
if ( bdb->bi_flags & BDB_RE_OPEN ) {
|
||||
bdb->bi_flags ^= BDB_RE_OPEN;
|
||||
rc = c->be->bd_info->bi_db_close( c->be, NULL );
|
||||
rc = c->be->bd_info->bi_db_close( c->be, &c->reply );
|
||||
if ( rc == 0 )
|
||||
rc = c->be->bd_info->bi_db_open( c->be, NULL );
|
||||
rc = c->be->bd_info->bi_db_open( c->be, &c->reply );
|
||||
/* If this fails, we need to restart */
|
||||
if ( rc ) {
|
||||
slapd_shutdown = 2;
|
||||
|
@ -269,7 +269,7 @@ int backend_startup(Backend *be)
|
||||
|
||||
/* open frontend, if required */
|
||||
if ( frontendDB->bd_info->bi_db_open ) {
|
||||
rc = frontendDB->bd_info->bi_db_open( frontendDB, NULL );
|
||||
rc = frontendDB->bd_info->bi_db_open( frontendDB, &cr );
|
||||
if ( rc != 0 ) {
|
||||
Debug( LDAP_DEBUG_ANY,
|
||||
"backend_startup: bi_db_open(frontend) failed! (%d)\n",
|
||||
|
@ -620,6 +620,7 @@ glue_open (
|
||||
glueinfo *gi = on->on_bi.bi_private;
|
||||
static int glueOpened = 0;
|
||||
int i, j, same, bsame = 0, rc = 0;
|
||||
ConfigReply cr = {0};
|
||||
|
||||
if (glueOpened) return 0;
|
||||
|
||||
@ -650,7 +651,7 @@ glue_open (
|
||||
gi->gi_n[i].gn_be->bd_info );
|
||||
/* Let backend.c take care of the rest of startup */
|
||||
if ( !rc )
|
||||
rc = backend_startup_one( gi->gi_n[i].gn_be, NULL );
|
||||
rc = backend_startup_one( gi->gi_n[i].gn_be, &cr );
|
||||
if ( rc ) break;
|
||||
}
|
||||
if ( !rc && !bsame && on->on_info->oi_orig->bi_open )
|
||||
|
@ -3209,7 +3209,7 @@ pcache_db_open2(
|
||||
query_manager* qm = cm->qm;
|
||||
int rc;
|
||||
|
||||
rc = backend_startup_one( &cm->db, NULL );
|
||||
rc = backend_startup_one( &cm->db, cr );
|
||||
if ( rc == 0 ) {
|
||||
cm->defer_db_open = 0;
|
||||
}
|
||||
|
@ -1147,7 +1147,7 @@ static int translucent_db_open(BackendDB *be, ConfigReply *cr) {
|
||||
if ( ov->defer_db_open )
|
||||
return 0;
|
||||
|
||||
rc = backend_startup_one( &ov->db, NULL );
|
||||
rc = backend_startup_one( &ov->db, cr );
|
||||
|
||||
if(rc) Debug(LDAP_DEBUG_TRACE,
|
||||
"translucent: bi_db_open() returned error %d\n", rc, 0, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user