aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/rsl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/rsl.c')
-rw-r--r--src/common/rsl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/rsl.c b/src/common/rsl.c
index fa732957..734c8bb4 100644
--- a/src/common/rsl.c
+++ b/src/common/rsl.c
@@ -518,7 +518,8 @@ static void copy_sacch_si_to_lchan(struct gsm_lchan *lchan)
static int encr_info2lchan(struct gsm_lchan *lchan,
const uint8_t *val, uint8_t len)
{
- if (len < 2)
+ /* length can be '1' in case of no ciphering */
+ if (len < 1)
return -EINVAL;
lchan->encr.alg_id = *val++;