From e71f452e9d1eeef0ffacdc036866e5b378ef9417 Mon Sep 17 00:00:00 2001 From: Paul Szczeanek Date: Mon, 23 Nov 2020 09:06:42 +0000 Subject: [PATCH] fix missing return --- connectivity/FEATURE_BLE/source/generic/SecurityDb.h | 1 + 1 file changed, 1 insertion(+) diff --git a/connectivity/FEATURE_BLE/source/generic/SecurityDb.h b/connectivity/FEATURE_BLE/source/generic/SecurityDb.h index 0383dfebca..5140b8728b 100644 --- a/connectivity/FEATURE_BLE/source/generic/SecurityDb.h +++ b/connectivity/FEATURE_BLE/source/generic/SecurityDb.h @@ -181,6 +181,7 @@ public: entry_handle_t correct_handle = find_entry_by_peer_ediv_rand(ediv, rand); if (!correct_handle) { cb(*db_handle, NULL); + return; } // Note: keys should never be null as a matching entry has been retrieved SecurityEntryKeys_t* keys = read_in_entry_local_keys(correct_handle);