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
This commit is contained in:
parent
64e1889f99
commit
5077657f57
|
@ -45,7 +45,7 @@
|
||||||
static struct e1_ts *
|
static struct e1_ts *
|
||||||
_e1d_get_ts(struct e1_line *line, uint8_t ts)
|
_e1d_get_ts(struct e1_line *line, uint8_t ts)
|
||||||
{
|
{
|
||||||
if (ts < 32)
|
if (ts > 0 && ts < 32)
|
||||||
return &line->ts[ts];
|
return &line->ts[ts];
|
||||||
else if (ts == E1DP_TS_SUPERCHAN)
|
else if (ts == E1DP_TS_SUPERCHAN)
|
||||||
return &line->superchan;
|
return &line->superchan;
|
||||||
|
|
Loading…
Reference in New Issue