aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2019-08-22 10:20:58 +0200
committerAlexander Couzens <lynxis@fe80.eu>2019-08-23 23:03:31 +0200
commit88a6e2c206801461dd10e023b972ff507a350e04 (patch)
treea103a24074c0c5a7ee8cea4c104b923e9679d63c
parentcbf7649cea0c31dbbed13dce2dd0a16cafb896d9 (diff)
gprs: on Iu release, stop the attach fsm if running
-rw-r--r--src/gprs/gprs_gmm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gprs/gprs_gmm.c b/src/gprs/gprs_gmm.c
index e77d205c..fe72addf 100644
--- a/src/gprs/gprs_gmm.c
+++ b/src/gprs/gprs_gmm.c
@@ -304,6 +304,9 @@ int sgsn_ranap_iu_event(struct ranap_ue_conn_ctx *ctx, enum ranap_iu_event_type
LOGMMCTXP(LOGL_INFO, mm, "IU release for imsi %s\n", mm->imsi);
mmctx_free_ue_ctx(mm);
+ if (mm->gmm_att_req.fsm->state != ST_INIT)
+ osmo_fsm_inst_dispatch(mm->gmm_att_req.fsm, E_REJECT, (void *) GMM_DISCARD_MS_WITHOUT_REJECT);
+
if (mm->pmm_state == PMM_CONNECTED)
mmctx_set_pmm_state(mm, PMM_IDLE);
rc = 0;