mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-10-05 22:37:23 +00:00
nimble/gap: Fix pointer to local outside of scope
X-Original-Commit: 93b924b9b1badaae9a41f3a9da82210251203c97
This commit is contained in:
@@ -2027,12 +2027,13 @@ ble_gap_adv_params_tx(uint8_t own_addr_type, const ble_addr_t *peer_addr,
|
||||
return rc;
|
||||
}
|
||||
#else
|
||||
const ble_addr_t *peer_any = BLE_ADDR_ANY;
|
||||
struct hci_adv_params hci_adv_params;
|
||||
uint8_t buf[BLE_HCI_SET_ADV_PARAM_LEN];
|
||||
int rc;
|
||||
|
||||
if (peer_addr == NULL) {
|
||||
peer_addr = BLE_ADDR_ANY;
|
||||
peer_addr = peer_any;
|
||||
}
|
||||
|
||||
hci_adv_params.own_addr_type = own_addr_type;
|
||||
|
||||
Reference in New Issue
Block a user