From 265132c5a8ad5fc0fa2e70e2d5423abee7e6c13e Mon Sep 17 00:00:00 2001 From: paul-szczepanek-arm <33840200+paul-szczepanek-arm@users.noreply.github.com> Date: Tue, 5 Jun 2018 14:25:56 +0100 Subject: [PATCH] check that flags have the IRK stored before retrieving it --- features/FEATURE_BLE/ble/generic/SecurityDb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/FEATURE_BLE/ble/generic/SecurityDb.h b/features/FEATURE_BLE/ble/generic/SecurityDb.h index 2f75def80f..8fa9e96d18 100644 --- a/features/FEATURE_BLE/ble/generic/SecurityDb.h +++ b/features/FEATURE_BLE/ble/generic/SecurityDb.h @@ -588,7 +588,7 @@ public: entry_handle_t db_handle = get_entry_handle_by_index(i); SecurityDistributionFlags_t* flags = get_distribution_flags(db_handle); - if (!flags) { + if (!flags || !flags->irk_stored) { continue; }