laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-e1-recorder/+/33789 )
Change subject: e1_recorder: Fix potential null-dereference ......................................................................
e1_recorder: Fix potential null-dereference
Fixes: CID#307523: Dereference null return value (NULL_RETURNS) Change-Id: I481f0695f971f5cd2e77b8c9c62d423a70e0840d --- M src/e1_recorder.c 1 file changed, 11 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-e1-recorder refs/changes/89/33789/1
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 @@ 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) {