aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2017-07-03 11:35:50 +0200
committerPhilipp Maier <pmaier@sysmocom.de>2017-07-03 11:35:50 +0200
commit4e3818b1c1fd592b125ce3e625b5cbf445037631 (patch)
tree920405e02d260b723e21780e53a0df8da55a80ba
parente93733f322c8ca2d60cc3493d3fa95d987321926 (diff)
osmo-bsc: add missing assertion
-rw-r--r--openbsc/src/osmo-bsc/osmo_bsc_sigtran.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_sigtran.c b/openbsc/src/osmo-bsc/osmo_bsc_sigtran.c
index cc4637a37..5741ad7d7 100644
--- a/openbsc/src/osmo-bsc/osmo_bsc_sigtran.c
+++ b/openbsc/src/osmo-bsc/osmo_bsc_sigtran.c
@@ -96,6 +96,7 @@ static void osmo_bsc_sigtran_tx_reset(struct bsc_msc_data *msc)
void osmo_bsc_sigtran_tx_reset_ack(struct bsc_msc_data *msc)
{
struct msgb *msg;
+ OSMO_ASSERT(msc);
LOGP(DMSC, LOGL_NOTICE, "Sending RESET ACK to MSC: %s\n", osmo_sccp_addr_dump(&msc->a.msc_addr));
msg = gsm0808_create_reset_ack();
osmo_sccp_tx_unitdata_msg(msc->a.sccp_user, &msc->a.bsc_addr,