Skip to content

Commit c3e639a

Browse files
author
Cruz Monrreal
authored
Merge pull request #7123 from paul-szczepanek-arm/fix-generate-whitelist
BLE: check flags to make sure the IRK has been stored before retrieving it
2 parents dabb112 + 265132c commit c3e639a

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)