Don't crash if transport is not yet mapped to a channel
This commit is contained in:
parent
ebef63e33f
commit
9d6411b7d2
1 changed files with 3 additions and 0 deletions
|
@ -184,6 +184,9 @@ tt_decode_line(th_transport_t *t, uint8_t *buf)
|
|||
tt_decoder_t *ttd = &ch->ch_tt;
|
||||
tt_page_t *ttp;
|
||||
|
||||
if(ch == NULL)
|
||||
return; /* Not mapped to a channel, do not do anything */
|
||||
|
||||
mpag = ham_decode(buf[0], buf[1]);
|
||||
|
||||
magidx = mpag & 7;
|
||||
|
|
Loading…
Add table
Reference in a new issue