l2cap: avoid potential null dereference in l2cap_rtx_timeout

This commit is contained in:
Matthias Ringwald 2016-07-01 11:30:53 +02:00
parent 2deddeced7
commit 95d2c8f48d

View File

@ -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);