summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-04-14 15:21:32 +0200
committerHarald Welte <laforge@gnumonks.org>2016-04-16 13:33:21 +0200
commita6e81a09861645dc9e8a6aa44a6a1d43bd70dcb7 (patch)
treeff298df429343bc88dbdb30d5dcc925ac17708ba
parent312bf6ce8bc56f88e49e8118f519494e71a4289a (diff)
bsc_nat: forward_sccp_to_msc(): assert con presence (CID #57872)
-rw-r--r--openbsc/src/osmo-bsc_nat/bsc_nat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/osmo-bsc_nat/bsc_nat.c b/openbsc/src/osmo-bsc_nat/bsc_nat.c
index f433324f8..efae54f02 100644
--- a/openbsc/src/osmo-bsc_nat/bsc_nat.c
+++ b/openbsc/src/osmo-bsc_nat/bsc_nat.c
@@ -1153,6 +1153,7 @@ static int forward_sccp_to_msc(struct bsc_connection *bsc, struct msgb *msg)
if (!create_sccp_src_ref(bsc, parsed))
goto exit2;
con = patch_sccp_src_ref_to_msc(msg, parsed, bsc);
+ OSMO_ASSERT(con);
con->msc_con = bsc->nat->msc_con;
con_msc = con->msc_con;
con->filter_state.con_type = con_type;