abis_rsl: fix off-by-one length check when parsing ericson tlli field
Change-Id: I658f6d82a67944345ddda5534fa996dca9e990ab
This commit is contained in:
parent
722bbb402f
commit
2faeb1ac6c
|
@ -2018,7 +2018,7 @@ static int abis_rsl_rx_cchan(struct msgb *msg)
|
|||
/* FIXME: Replace the messy message parsing below
|
||||
* with proper TV parser */
|
||||
LOGP(DRSL, LOGL_INFO, "IMM.ass sent\n");
|
||||
if(msg->len < 8)
|
||||
if(msg->len < 9)
|
||||
LOGP(DRSL, LOGL_ERROR, "short IMM.ass sent message!\n");
|
||||
else if(msg->data[4] != 0xf1)
|
||||
LOGP(DRSL, LOGL_ERROR, "unsupported IMM.ass message format! (please fix)\n");
|
||||
|
|
Loading…
Reference in New Issue