fix(nimble): Add a check for psync before processing

This commit is contained in:
Rahul Tank
2025-10-06 11:26:26 +05:30
parent c6709f6efa
commit 6f9ff29d26
+5
View File
@@ -2349,6 +2349,11 @@ ble_gap_rx_peroidic_adv_sync_estab(const struct ble_hci_ev_le_subev_periodic_adv
BLE_HS_DBG_ASSERT(ble_gap_sync.psync);
if (!ble_gap_sync.psync) {
ble_hs_unlock();
return;
}
if (!ev->status) {
sync_handle = le16toh(ev->sync_handle);