From 815117c246ff3eb031326718c4b5773f8c4b33e9 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Tue, 14 Jul 2020 21:19:16 +0200 Subject: ipaccess_recvmsg: Assert the new bfd from new line differs from the old one Related: OS#4624 Change-Id: I45818e04af0da7b1109d909642a1ea378a85a636 --- src/input/ipaccess.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/input/ipaccess.c b/src/input/ipaccess.c index 8a7142d..02a5028 100644 --- a/src/input/ipaccess.c +++ b/src/input/ipaccess.c @@ -303,6 +303,7 @@ static int ipaccess_rcvmsg(struct e1inp_line *line, struct msgb *msg, e1inp_line_get2(new_line, "ipa_bfd"); ts = e1inp_line_ipa_rsl_ts(new_line, unit_data.trx_id); newbfd = &ts->driver.ipaccess.fd; + OSMO_ASSERT(newbfd != bfd); /* get rid of our old temporary bfd */ /* preserve 'newbfd->when' flags potentially set by sign_link_up() */ -- cgit v1.2.3