From f4a68297a0147bc890446b3cd3efccc49b31decc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Kuzn=C3=ADk?= Date: Tue, 19 Feb 2019 10:28:01 +0000 Subject: [PATCH] Actually check for mi->bi_extra --- servers/slapd/back-bdb/monitor.c | 2 +- servers/slapd/back-mdb/monitor.c | 2 +- servers/slapd/overlays/pcache.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/servers/slapd/back-bdb/monitor.c b/servers/slapd/back-bdb/monitor.c index 81b82a9eab..97cae08bf5 100644 --- a/servers/slapd/back-bdb/monitor.c +++ b/servers/slapd/back-bdb/monitor.c @@ -494,7 +494,7 @@ bdb_monitor_db_close( BackendDB *be ) BackendInfo *mi = backend_info( "monitor" ); monitor_extra_t *mbe; - if ( mi && &mi->bi_extra ) { + if ( mi && mi->bi_extra ) { mbe = mi->bi_extra; mbe->unregister_entry_callback( &bdb->bi_monitor.bdm_ndn, (monitor_callback_t *)bdb->bi_monitor.bdm_cb, diff --git a/servers/slapd/back-mdb/monitor.c b/servers/slapd/back-mdb/monitor.c index 2ea711e23e..205291fb62 100644 --- a/servers/slapd/back-mdb/monitor.c +++ b/servers/slapd/back-mdb/monitor.c @@ -554,7 +554,7 @@ mdb_monitor_db_close( BackendDB *be ) BackendInfo *mi = backend_info( "monitor" ); monitor_extra_t *mbe; - if ( mi && &mi->bi_extra ) { + if ( mi && mi->bi_extra ) { mbe = mi->bi_extra; mbe->unregister_entry_callback( &mdb->mi_monitor.mdm_ndn, (monitor_callback_t *)mdb->mi_monitor.mdm_cb, diff --git a/servers/slapd/overlays/pcache.c b/servers/slapd/overlays/pcache.c index 4019c9d497..8eef463d32 100644 --- a/servers/slapd/overlays/pcache.c +++ b/servers/slapd/overlays/pcache.c @@ -5631,7 +5631,7 @@ pcache_monitor_db_close( BackendDB *be ) BackendInfo *mi = backend_info( "monitor" ); monitor_extra_t *mbe; - if ( mi && &mi->bi_extra ) { + if ( mi && mi->bi_extra ) { mbe = mi->bi_extra; mbe->unregister_entry_callback( &cm->monitor_ndn, (monitor_callback_t *)cm->monitor_cb,