Skip to content

Commit bf6407e

Browse files
paul-szczepanek-armadbridge
authored andcommitted
check that flags have the IRK stored before retrieving it
1 parent 62604bb commit bf6407e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/FEATURE_BLE/ble/generic/SecurityDb.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ class SecurityDb {
588588
entry_handle_t db_handle = get_entry_handle_by_index(i);
589589
SecurityDistributionFlags_t* flags = get_distribution_flags(db_handle);
590590

591-
if (!flags) {
591+
if (!flags || !flags->irk_stored) {
592592
continue;
593593
}
594594

0 commit comments

Comments
 (0)