From ea122da9fc076b6005c07ca5163c26d895f3f93c Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Tue, 19 Mar 2024 17:11:21 +0100 Subject: [PATCH] [SMF] Allow Gy CCA event to contain NULL gtp_xact This happens for instance when the session is terminated due to a rejection coming from the OCS, hence no originating GTP xact producing the tear down. --- src/smf/gsm-sm.c | 1 - src/smf/gy-handler.c | 1 - 2 files changed, 2 deletions(-) diff --git a/src/smf/gsm-sm.c b/src/smf/gsm-sm.c index 7c8b30d0f..d1226ca9e 100644 --- a/src/smf/gsm-sm.c +++ b/src/smf/gsm-sm.c @@ -1486,7 +1486,6 @@ void smf_gsm_state_wait_epc_auth_release(ogs_fsm_t *s, smf_event_t *e) case OGS_DIAM_GY_CMD_CODE_CREDIT_CONTROL: switch(gy_message->cc_request_type) { case OGS_DIAM_GY_CC_REQUEST_TYPE_TERMINATION_REQUEST: - ogs_assert(e->gtp_xact); diam_err = smf_gy_handle_cca_termination_request(sess, gy_message, e->gtp_xact); sess->sm_data.gy_ccr_term_in_flight = false; diff --git a/src/smf/gy-handler.c b/src/smf/gy-handler.c index dd754501f..159d7f63c 100644 --- a/src/smf/gy-handler.c +++ b/src/smf/gy-handler.c @@ -241,7 +241,6 @@ uint32_t smf_gy_handle_cca_termination_request( { ogs_assert(sess); ogs_assert(gy_message); - ogs_assert(gtp_xact); ogs_debug("[SMF] Delete Session Response"); ogs_debug(" SGW_S5C_TEID[0x%x] SMF_N4_TEID[0x%x]",