mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-11-03 05:23:43 +00:00
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.
This commit is contained in:
committed by
Holger Hans Peter Freyther
parent
b7ae0b34f9
commit
5fd0c64e0a
@@ -1390,12 +1390,12 @@ static int setup_trig_pag_evt(unsigned int hooknum, unsigned int event,
|
|||||||
struct gsm_trans *transt = _transt;
|
struct gsm_trans *transt = _transt;
|
||||||
|
|
||||||
OSMO_ASSERT(!transt->conn);
|
OSMO_ASSERT(!transt->conn);
|
||||||
OSMO_ASSERT(conn);
|
|
||||||
|
|
||||||
/* check all tranactions (without lchan) for subscriber */
|
/* check all tranactions (without lchan) for subscriber */
|
||||||
switch (event) {
|
switch (event) {
|
||||||
case GSM_PAGING_SUCCEEDED:
|
case GSM_PAGING_SUCCEEDED:
|
||||||
DEBUGP(DCC, "Paging subscr %s succeeded!\n", transt->subscr->extension);
|
DEBUGP(DCC, "Paging subscr %s succeeded!\n", transt->subscr->extension);
|
||||||
|
OSMO_ASSERT(conn);
|
||||||
/* Assign lchan */
|
/* Assign lchan */
|
||||||
transt->conn = conn;
|
transt->conn = conn;
|
||||||
/* send SETUP request to called party */
|
/* send SETUP request to called party */
|
||||||
|
|||||||
Reference in New Issue
Block a user