Change in osmo-bsc[master]: assignment_fsm: assert the result of conn_get_bts()

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

fixeria gerrit-no-reply at lists.osmocom.org
Thu Feb 4 13:24:07 UTC 2021


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bsc/+/22692 )


Change subject: assignment_fsm: assert the result of conn_get_bts()
......................................................................

assignment_fsm: assert the result of conn_get_bts()

Change-Id: I036f2d895e3569bd050ce574759f8371bd19cec9
Fixes: CID#216933
---
M src/osmo-bsc/assignment_fsm.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/92/22692/1

diff --git a/src/osmo-bsc/assignment_fsm.c b/src/osmo-bsc/assignment_fsm.c
index e5ef1c5..8bb879f 100644
--- a/src/osmo-bsc/assignment_fsm.c
+++ b/src/osmo-bsc/assignment_fsm.c
@@ -231,7 +231,7 @@
 	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 };

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/22692
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I036f2d895e3569bd050ce574759f8371bd19cec9
Gerrit-Change-Number: 22692
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210204/631caf52/attachment.htm>


More information about the gerrit-log mailing list