mesh: annotate device uuid is not copied in pb_adv_create_link

This commit is contained in:
Matthias Ringwald 2020-04-22 17:37:20 +02:00
parent 2e9a36a1d6
commit e6542936bd
2 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ void pb_adv_close_link(uint16_t pb_adv_cid, uint8_t reason);
#ifdef ENABLE_MESH_PROVISIONER
/**
* Setup Link with unprovisioned device
* @param DeviceUUID
* @param DeviceUUID - data not copied
* @returns pb_adv_cid or 0
*/
uint16_t pb_adv_create_link(const uint8_t * device_uuid);

View File

@ -305,7 +305,7 @@ static void mesh_pts_dump_mesh_options(void){
static void mesh_unprovisioned_beacon_handler(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){
if (packet_type != MESH_BEACON_PACKET) return;
uint8_t device_uuid[16];
static uint8_t device_uuid[16];
uint16_t oob;
memcpy(device_uuid, &packet[1], 16);
oob = big_endian_read_16(packet, 17);