diff --git a/features/FEATURE_BLE/source/generic/GenericSecurityManager.cpp b/features/FEATURE_BLE/source/generic/GenericSecurityManager.cpp index a2465a5fd7..215b936214 100644 --- a/features/FEATURE_BLE/source/generic/GenericSecurityManager.cpp +++ b/features/FEATURE_BLE/source/generic/GenericSecurityManager.cpp @@ -500,10 +500,15 @@ public: connection_handle_t connection, csrk_t csrk ) { + SecurityEntry_t *entry = db.get_entry(connection); + if (!entry) { + return DB_CB_ACTION_NO_UPDATE_REQUIRED; + } + _app_event_handler->signingKey( connection, csrk, - db.get_entry(connection)->mitm_pairing + entry->mitm_csrk ); return DB_CB_ACTION_NO_UPDATE_REQUIRED; }