Skip to content

Commit 265132c

Browse files
check that flags have the IRK stored before retrieving it
1 parent 74aec93 commit 265132c

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)