summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Kluchnikov <kluchnikovi@gmail.com>2015-05-26 13:36:58 +0300
committerIvan Kluchnikov <kluchnikovi@gmail.com>2015-05-26 15:56:20 +0300
commitd38e96df2a94c74304540b9cd6ec6a2d5f95f77e (patch)
tree4749ea6a849e33b3fee81f5bef57b70a68f94cd7
parent8d0f77c8ffe328cd80b6f01e721220cd6867a98d (diff)
gsm_04_08: Use osmo_assert for transt->conn and conn only in case of paging succeeded
setup_trig_pag_evt function can receive parameter conn = NULL, if T3113 expires.
-rw-r--r--openbsc/src/libmsc/gsm_04_08.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/openbsc/src/libmsc/gsm_04_08.c b/openbsc/src/libmsc/gsm_04_08.c
index 9997a11..5a9e1ec 100644
--- a/openbsc/src/libmsc/gsm_04_08.c
+++ b/openbsc/src/libmsc/gsm_04_08.c
@@ -1396,13 +1396,12 @@ static int setup_trig_pag_evt(unsigned int hooknum, unsigned int event,
struct gsm_subscriber_connection *conn = _conn;
struct gsm_trans *transt = _transt;
- OSMO_ASSERT(!transt->conn);
- OSMO_ASSERT(conn);
-
/* check all tranactions (without lchan) for subscriber */
switch (event) {
case GSM_PAGING_SUCCEEDED:
DEBUGP(DCC, "Paging subscr %s succeeded!\n", transt->subscr->extension);
+ OSMO_ASSERT(!transt->conn);
+ OSMO_ASSERT(conn);
/* Assign lchan */
transt->conn = conn;
/* send SETUP request to called party */