From 65f379640c69effe3e7b79911ca84150420c5e83 Mon Sep 17 00:00:00 2001 From: Gaber Stare Date: Mon, 27 Mar 2023 09:35:00 +0000 Subject: [PATCH] [SMF] Release PDU session with skipInd Follow-up on [#2048](https://github.com/open5gs/open5gs/pull/2048) AMF crashes when 'skipInd' field is missing: ``` amf | 03/21 07:45:04.092: [amf] FATAL: [imsi-001010000000000] No skipInd (../src/amf/namf-handler.c:392) amf | 03/21 07:45:04.092: [amf] FATAL: amf_namf_comm_handle_n1_n2_message_transfer: should not be reached. (../src/amf/namf-handler.c:393) ``` In case of CM_CONNECTED skipInd is not important. In case of CM_IDLE the proper relase would contain skipInd. --- src/smf/gsm-sm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smf/gsm-sm.c b/src/smf/gsm-sm.c index 441d39c3c..b43bc9414 100644 --- a/src/smf/gsm-sm.c +++ b/src/smf/gsm-sm.c @@ -919,7 +919,7 @@ void smf_gsm_state_operational(ogs_fsm_t *s, smf_event_t *e) NGAP_Cause_PR_nas, NGAP_CauseNas_normal_release); ogs_assert(param.n2smbuf); - param.skip_ind = false; + param.skip_ind = true; smf_namf_comm_send_n1_n2_message_transfer(sess, ¶m); } else {