mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
components/bt: Fix crash due to NULL point
This commit is contained in:
parent
5f47ec4e0c
commit
3fd18692a2
@ -1251,9 +1251,11 @@ BOOLEAN bta_av_hdl_event(BT_HDR *p_msg)
|
|||||||
} else {
|
} else {
|
||||||
APPL_TRACE_VERBOSE("handle=0x%x\n", p_msg->layer_specific);
|
APPL_TRACE_VERBOSE("handle=0x%x\n", p_msg->layer_specific);
|
||||||
tBTA_AV_SCB *p_scb = bta_av_hndl_to_scb(p_msg->layer_specific);
|
tBTA_AV_SCB *p_scb = bta_av_hndl_to_scb(p_msg->layer_specific);
|
||||||
p_scb->disc_rsn = p_msg->offset;
|
if (p_scb) {
|
||||||
/* stream state machine events */
|
p_scb->disc_rsn = p_msg->offset;
|
||||||
bta_av_ssm_execute(p_scb, p_msg->event, (tBTA_AV_DATA *) p_msg);
|
/* stream state machine events */
|
||||||
|
bta_av_ssm_execute(p_scb, p_msg->event, (tBTA_AV_DATA *) p_msg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user