e1_recorder: Fix potential null-dereference

Fixes: CID#307523: Dereference null return value (NULL_RETURNS)
Change-Id: I481f0695f971f5cd2e77b8c9c62d423a70e0840d
This commit is contained in:
Harald Welte 2023-07-18 14:39:57 +02:00
parent dc4b5d6522
commit 456135a605
1 changed files with 1 additions and 0 deletions

View File

@ -77,6 +77,7 @@ void e1ts_raw_recv(struct e1inp_ts *ts, struct msgb *msg)
if (rline->mirror.enabled) {
struct e1inp_line *other_line =
e1inp_line_find(rline->mirror.line_nr);
OSMO_ASSERT(other_line);
struct e1inp_ts *other_ts;
other_ts = &other_line->ts[ts->num-1];
if (!other_ts) {