Bluetooth: Controller: Fix null pointer dereference

Fix null pointer dereference in Controller when receiving an extended
advertisement and CONFIG_BT_LOG_LEVEL_DBG is enabled.

Signed-off-by: Pieterjan Camerlynck <pieterjan.camerlynck@gmail.com>
This commit is contained in:
Pieterjan Camerlynck 2022-04-08 08:32:08 +02:00 committed by Carles Cufí
commit 53327e30f2

View file

@ -6247,7 +6247,7 @@ static void le_ext_adv_report(struct pdu_data *pdu_data,
ptr += sizeof(*adi);
BT_DBG(" AdvDataInfo DID = 0x%x, SID = 0x%x",
adi->did, adi->sid);
adi_curr->did, adi_curr->sid);
}
if (h->aux_ptr) {