e1_recorder: Fix potential null-dereference
Fixes: CID#307523: Dereference null return value (NULL_RETURNS) Change-Id: I481f0695f971f5cd2e77b8c9c62d423a70e0840d
This commit is contained in:
parent
dc4b5d6522
commit
456135a605
|
@ -77,6 +77,7 @@ void e1ts_raw_recv(struct e1inp_ts *ts, struct msgb *msg)
|
||||||
if (rline->mirror.enabled) {
|
if (rline->mirror.enabled) {
|
||||||
struct e1inp_line *other_line =
|
struct e1inp_line *other_line =
|
||||||
e1inp_line_find(rline->mirror.line_nr);
|
e1inp_line_find(rline->mirror.line_nr);
|
||||||
|
OSMO_ASSERT(other_line);
|
||||||
struct e1inp_ts *other_ts;
|
struct e1inp_ts *other_ts;
|
||||||
other_ts = &other_line->ts[ts->num-1];
|
other_ts = &other_line->ts[ts->num-1];
|
||||||
if (!other_ts) {
|
if (!other_ts) {
|
||||||
|
|
Loading…
Reference in New Issue