aboutsummaryrefslogtreecommitdiffstats
path: root/src/sgsn/gprs_mm_state_iu_fsm.c
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2019-09-10 21:00:18 +0200
committerlynxis lazus <lynxis@fe80.eu>2019-10-03 20:29:37 +0000
commiteb5aee580d01d9f0f30c1190697f8499ce1f070a (patch)
treeed6512105799d6cfe46a2b365f65aa128471d45f /src/sgsn/gprs_mm_state_iu_fsm.c
parente30f19542bcfa3493dc428a638580f34c773081b (diff)
gprs_ranap: release Iu UE Context when exiting PMM Connected
PMM Connected defines a Iu signaling connection. The 2 other PMM states do not have an active Iu signaling connection. Change-Id: Ie05d2bdf8dfb593b4c7e837107a3a06f22e90119
Diffstat (limited to 'src/sgsn/gprs_mm_state_iu_fsm.c')
-rw-r--r--src/sgsn/gprs_mm_state_iu_fsm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sgsn/gprs_mm_state_iu_fsm.c b/src/sgsn/gprs_mm_state_iu_fsm.c
index 1ed5f56f..b098f201 100644
--- a/src/sgsn/gprs_mm_state_iu_fsm.c
+++ b/src/sgsn/gprs_mm_state_iu_fsm.c
@@ -6,6 +6,7 @@
#include <osmocom/sgsn/debug.h>
#include <osmocom/sgsn/sgsn.h>
+#include <osmocom/sgsn/gprs_ranap.h>
#define X(s) (1 << (s))
@@ -45,11 +46,15 @@ static void st_pmm_detached(struct osmo_fsm_inst *fi, uint32_t event, void *data
static void st_pmm_connected(struct osmo_fsm_inst *fi, uint32_t event, void *data)
{
+ struct sgsn_mm_ctx *ctx = fi->priv;
+
switch(event) {
case E_PMM_PS_CONN_RELEASE:
+ sgsn_ranap_iu_free(ctx);
mm_state_iu_fsm_state_chg(fi, ST_PMM_IDLE);
break;
case E_PMM_IMPLICIT_DETACH:
+ sgsn_ranap_iu_release_free(ctx, NULL);
mm_state_iu_fsm_state_chg(fi, ST_PMM_DETACHED);
break;
case E_PMM_RA_UPDATE: