aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/l1sap.c
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-11-26 19:01:40 +0100
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-12-02 15:01:10 +0100
commit3b1e66af9e4a05d7a573ba7725f6e1fc28dc667c (patch)
tree506ca8b6a5f23a98fb6ad6a9b98104ea2bc9b04c /src/common/l1sap.c
parent369c852022f95bf04f3504e823a6ca008e0f11d0 (diff)
l1sap: make sure that UL SACCH is always 23 octets long
Diffstat (limited to 'src/common/l1sap.c')
-rw-r--r--src/common/l1sap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/l1sap.c b/src/common/l1sap.c
index 1785e662..2038fbad 100644
--- a/src/common/l1sap.c
+++ b/src/common/l1sap.c
@@ -1531,8 +1531,8 @@ static int l1sap_ph_data_ind(struct gsm_bts_trx *trx,
radio_link_timeout(lchan, false);
le = &lchan->lapdm_ch.lapdm_acch;
/* save the SACCH L1 header in the lchan struct for RSL MEAS RES */
- if (len < 2) {
- LOGPGT(DL1P, LOGL_NOTICE, &g_time, "SACCH with size %u<2 !?!\n", len);
+ if (len != GSM_MACBLOCK_LEN) {
+ LOGPGT(DL1P, LOGL_NOTICE, &g_time, "SACCH with odd len=%u!?!\n", len);
return -EINVAL;
}
/* Some brilliant engineer decided that the ordering of