Actually check for mi->bi_extra

This commit is contained in:
Ondřej Kuzník 2019-02-19 10:28:01 +00:00
parent cd914149a6
commit f4a68297a0
3 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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,

View File

@ -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,