From 162626637f12a88a0bf407784d7002aff5991874 Mon Sep 17 00:00:00 2001 From: Daniel Willmann Date: Thu, 6 Dec 2018 16:00:06 +0100 Subject: gsm_04_08: Free GSM subscr conn if paging response can't be matched The current idea of calling gscon_release_lchans is not enough because the conn is still present. Insetad pretend we got a disconnect indication from the MSC which will call gscon_release_lchans as well as terminate the conn state machine which will clean up conn state as well. Related: OS#3680 Change-Id: Iccf5f6864ffe238189907c4bb3ea333948621b4c --- src/osmo-bsc/gsm_04_08_rr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osmo-bsc/gsm_04_08_rr.c b/src/osmo-bsc/gsm_04_08_rr.c index 4be51981f..f1061ef4d 100644 --- a/src/osmo-bsc/gsm_04_08_rr.c +++ b/src/osmo-bsc/gsm_04_08_rr.c @@ -951,7 +951,7 @@ int gsm0408_rcvmsg(struct msgb *msg, uint8_t link_id) /* fwd via bsc_api to send COMPLETE L3 INFO to MSC */ rc = bsc_compl_l3(lchan->conn, msg, 0); if (rc < 0) { - gscon_release_lchans(lchan->conn, true); + osmo_fsm_inst_dispatch(lchan->conn->fi, GSCON_EV_A_DISC_IND, NULL); return rc; } /* conn shall release lchan on teardown, also if this Layer 3 Complete is rejected. */ -- cgit v1.2.3