aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-02-04 14:22:44 +0100
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-02-04 14:22:50 +0100
commite511c99052685c174d31413bd616fe3c61b1f8c4 (patch)
tree018653263a10e827fc4ba93f4b2abcd6822ec882
parentf1c82b8e1250277db3ccc6a83cdb6837643b8f99 (diff)
assignment_fsm: assert the result of conn_get_bts()
Change-Id: I036f2d895e3569bd050ce574759f8371bd19cec9 Fixes: CID#216933
-rw-r--r--src/osmo-bsc/assignment_fsm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo-bsc/assignment_fsm.c b/src/osmo-bsc/assignment_fsm.c
index e5ef1c5c7..8bb879fd1 100644
--- a/src/osmo-bsc/assignment_fsm.c
+++ b/src/osmo-bsc/assignment_fsm.c
@@ -231,7 +231,7 @@ static void assignment_success(struct gsm_subscriber_connection *conn)
gscon_change_primary_lchan(conn, conn->assignment.new_lchan);
conn->assignment.new_lchan = NULL;
- bts = conn_get_bts(conn);
+ OSMO_ASSERT((bts = conn_get_bts(conn)) != NULL);
if (is_siemens_bts(bts) && ts_is_tch(conn->lchan->ts)) {
/* HACK: store the actual Classmark 2 LV from the subscriber and use it here! */
uint8_t cm2_lv[] = { 0x02, 0x00, 0x00 };