mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/bt_avdt_state_machine' into 'master'
component/bt: bugfix for AVDTP state machine function on disconnection to handle NULL pointer condition See merge request !946
This commit is contained in:
parent
3bd3640d60
commit
663129abce
@ -956,7 +956,11 @@ void avdt_scb_hdl_tc_close(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data)
|
||||
|
||||
/* set up hdr */
|
||||
avdt_ctrl.hdr.err_code = p_scb->close_code;
|
||||
avdt_ctrl.hdr.err_param = p_data->close.disc_rsn;
|
||||
if (p_data) {
|
||||
avdt_ctrl.hdr.err_param = p_data->close.disc_rsn;
|
||||
} else {
|
||||
avdt_ctrl.hdr.err_param = AVDT_DISC_RSN_NORMAL;
|
||||
}
|
||||
|
||||
/* clear sep variables */
|
||||
avdt_scb_clr_vars(p_scb, p_data);
|
||||
|
Loading…
Reference in New Issue
Block a user