Skip to content

Commit

Permalink
Merge branch 'bugfix/btdm_fix_write_char_crash_after_disconnection' i…
Browse files Browse the repository at this point in the history
…nto 'master'

Component/bt: fix write char crash after disconnection

See merge request idf/esp-idf!4209
  • Loading branch information
jack0c committed Feb 1, 2019
2 parents d7a7a68 + b51a0fc commit abea9e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/bt/bluedroid/stack/l2cap/l2c_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -1845,7 +1845,7 @@ BOOLEAN L2CA_CheckIsCongest(UINT16 fixed_cid, UINT16 handle)
tL2C_LCB *p_lcb;
p_lcb = l2cu_find_lcb_by_handle(handle);

if (p_lcb != NULL) {
if (p_lcb != NULL && p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL] != NULL) {
return p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL]->cong_sent;
}

Expand Down

0 comments on commit abea9e4

Please sign in to comment.