aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2019-09-17 16:52:15 +0200
committerlaforge <laforge@osmocom.org>2019-10-08 20:31:56 +0000
commit10af11dacc382b7deef68e23428401a78ad6f047 (patch)
tree879e2a452f88992448b6adec1275e1906c219485
parentafadd102bf1b3a187218a9d79687c4750a035100 (diff)
gprs_gmm: release Iu connection on RAU failures
When a RAU fails without an a GMM context, release the Iu connection after sending a response. Change-Id: I05a9200f55d608ccfb3f86184c324a2b428da76b
-rw-r--r--src/sgsn/gprs_gmm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sgsn/gprs_gmm.c b/src/sgsn/gprs_gmm.c
index afae369a2..b6b16854b 100644
--- a/src/sgsn/gprs_gmm.c
+++ b/src/sgsn/gprs_gmm.c
@@ -1699,6 +1699,12 @@ rejected:
mm_ctx_cleanup_free(mmctx, "GPRS RA UPDATE REJ");
else if (llme)
gprs_llgmm_unassign(llme);
+#ifdef BUILD_IU
+ else if (MSG_IU_UE_CTX(msg)) {
+ unsigned long X1001 = osmo_tdef_get(sgsn->cfg.T_defs, -1001, OSMO_TDEF_S, -1);
+ ranap_iu_tx_release_free(MSG_IU_UE_CTX(msg), NULL, (int) X1001);
+ }
+#endif
return rc;
}