From 69a0c10f00af42df872de5206ae58c1fa32b2f1a Mon Sep 17 00:00:00 2001 From: paul-szczepanek-arm <33840200+paul-szczepanek-arm@users.noreply.github.com> Date: Tue, 22 May 2018 14:37:02 +0100 Subject: [PATCH] removing erroneous (and redundant) check this is gating on the wrong flag and the call doesn't require a check in the first place --- .../source/generic/GenericSecurityManager.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/features/FEATURE_BLE/source/generic/GenericSecurityManager.cpp b/features/FEATURE_BLE/source/generic/GenericSecurityManager.cpp index 29adce2ba4..e2d5c8543d 100644 --- a/features/FEATURE_BLE/source/generic/GenericSecurityManager.cpp +++ b/features/FEATURE_BLE/source/generic/GenericSecurityManager.cpp @@ -1603,14 +1603,12 @@ void GenericSecurityManager::on_ltk_request( return; } - if (flags->ltk_stored) { - _db->get_entry_local_keys( - mbed::callback(this, &GenericSecurityManager::set_ltk_cb), - cb->db_entry, - ediv, - rand - ); - } + _db->get_entry_local_keys( + mbed::callback(this, &GenericSecurityManager::set_ltk_cb), + cb->db_entry, + ediv, + rand + ); } /* control blocks list management */