aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-07-14 21:19:16 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2020-07-15 15:39:33 +0200
commit815117c246ff3eb031326718c4b5773f8c4b33e9 (patch)
treee251299c1960b74acb7d7cf55f09dfb4793acf01
parentdc55a5fa6396eae1f5f2f1d2c7af4065e41b76b3 (diff)
ipaccess_recvmsg: Assert the new bfd from new line differs from the old one
-rw-r--r--src/input/ipaccess.c1
1 files changed, 1 insertions, 0 deletions
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() */