From 1086e207545c186a5f84a99233ea97f56cc0fb99 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Fri, 2 Jul 2021 18:36:32 +0200 Subject: vlr_sgs: Drop recorded LastEutranPlmnId when UE no longer associated Change-Id: I0dcb1850ab4f6f7d42bfcb19665ddeae2d3b057a --- src/libvlr/vlr_sgs_fsm.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/libvlr') diff --git a/src/libvlr/vlr_sgs_fsm.c b/src/libvlr/vlr_sgs_fsm.c index 0f21617b2..af26ca49e 100644 --- a/src/libvlr/vlr_sgs_fsm.c +++ b/src/libvlr/vlr_sgs_fsm.c @@ -59,6 +59,10 @@ static void to_null(struct osmo_fsm_inst *fi) * put us to NULL state, we have to free the pending TMSI */ vsub->tmsi_new = GSM_RESERVED_TMSI; + /* Make sure we remove recorded Last EUTRAN PLMN Id when UE ceases to be + * available over SGs */ + vlr_subscr_set_last_used_eutran_plmn_id(vsub, NULL); + /* Make sure any ongoing paging is aborted. */ if (vsub->cs.is_paging) paging_expired(vsub); -- cgit v1.2.3