aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2023-07-18 14:39:57 +0200
committerHarald Welte <laforge@osmocom.org>2023-07-18 14:40:30 +0200
commit456135a605dd7addd6f4add007d4650bcbabfec6 (patch)
tree853aea5e99ccb9fbca9f11b742a3092e79c451ab
parentdc4b5d6522e49e35095e45428903227458e520de (diff)
e1_recorder: Fix potential null-dereferenceHEADmaster
Fixes: CID#307523: Dereference null return value (NULL_RETURNS) Change-Id: I481f0695f971f5cd2e77b8c9c62d423a70e0840d
-rw-r--r--src/e1_recorder.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/e1_recorder.c b/src/e1_recorder.c
index 996ede4..cc21bc0 100644
--- a/src/e1_recorder.c
+++ b/src/e1_recorder.c
@@ -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) {