mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-06-06 05:14:45 +00:00
fix(nimble): Add a check for psync before processing
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user