mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 22:20:37 +00:00
l2cap: avoid potential null dereference in l2cap_rtx_timeout
This commit is contained in:
parent
2deddeced7
commit
95d2c8f48d
@ -304,7 +304,7 @@ static l2cap_channel_t * l2cap_channel_for_rtx_timer(btstack_timer_source_t * ts
|
||||
|
||||
static void l2cap_rtx_timeout(btstack_timer_source_t * ts){
|
||||
l2cap_channel_t * channel = l2cap_channel_for_rtx_timer(ts);
|
||||
if (!ts) return;
|
||||
if (!channel) return;
|
||||
|
||||
log_info("l2cap_rtx_timeout for local cid 0x%02x", channel->local_cid);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user