Skip to content

Commit 69a0c10

Browse files
removing erroneous (and redundant) check
this is gating on the wrong flag and the call doesn't require a check in the first place
1 parent 08cb7ae commit 69a0c10

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

features/FEATURE_BLE/source/generic/GenericSecurityManager.cpp

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1603,14 +1603,12 @@ void GenericSecurityManager::on_ltk_request(
16031603
return;
16041604
}
16051605

1606-
if (flags->ltk_stored) {
1607-
_db->get_entry_local_keys(
1608-
mbed::callback(this, &GenericSecurityManager::set_ltk_cb),
1609-
cb->db_entry,
1610-
ediv,
1611-
rand
1612-
);
1613-
}
1606+
_db->get_entry_local_keys(
1607+
mbed::callback(this, &GenericSecurityManager::set_ltk_cb),
1608+
cb->db_entry,
1609+
ediv,
1610+
rand
1611+
);
16141612
}
16151613

16161614
/* control blocks list management */

0 commit comments

Comments
 (0)