summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2017-03-13 11:00:59 +0100
committerAlexander Couzens <lynxis@fe80.eu>2017-03-13 11:10:14 +0100
commitda0d703d5d5cc6adc54f00ee058836b44ef013ea (patch)
tree0e327e141eed3284bbc3872b0eaeddeb1c02953e
parent3dc2b23f39e81bfe733aae0e06e16b93e1f67d68 (diff)
abis_rsl: fix off-by-one length check when parsing ericson tlli field
-rw-r--r--openbsc/src/libbsc/abis_rsl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/libbsc/abis_rsl.c b/openbsc/src/libbsc/abis_rsl.c
index 7fd063e..bcd40fe 100644
--- a/openbsc/src/libbsc/abis_rsl.c
+++ b/openbsc/src/libbsc/abis_rsl.c
@@ -2044,7 +2044,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");