aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2022-11-01 17:01:48 +0100
committerHarald Welte <laforge@osmocom.org>2022-11-01 17:01:48 +0100
commit5077657f57bc0c9a5adae2a29770a761ccc096ec (patch)
tree10007c5be994fe7f3dc01ffeaeb34ee2809fd792 /src
parent64e1889f993d4c10b04b79b58c7dbc6c9fcfce26 (diff)
ctl: Prevent clients from opening TS0
This doesn't work, as the mux_demux.c code doesn't pass the TS0 bitstream to users anyway. So let's reject clients attempting this. Change-Id: Idb2d20da7de72dad38ae2fccdd7630677d0f0cc8
Diffstat (limited to 'src')
-rw-r--r--src/ctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ctl.c b/src/ctl.c
index b5fdee4..54d37c5 100644
--- a/src/ctl.c
+++ b/src/ctl.c
@@ -45,7 +45,7 @@
static struct e1_ts *
_e1d_get_ts(struct e1_line *line, uint8_t ts)
{
- if (ts < 32)
+ if (ts > 0 && ts < 32)
return &line->ts[ts];
else if (ts == E1DP_TS_SUPERCHAN)
return &line->superchan;