From 4634d13a3b8b976b0a94180deb9cc8e60dd3df6c Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Fri, 12 Jan 2018 15:53:47 +0000 Subject: [PATCH] Reverted changes in UE ctxt release request to avoid segfault. --- srsepc/src/mme/s1ap_ctx_mngmt_proc.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/srsepc/src/mme/s1ap_ctx_mngmt_proc.cc b/srsepc/src/mme/s1ap_ctx_mngmt_proc.cc index 70d3e7380..185a6f8dd 100644 --- a/srsepc/src/mme/s1ap_ctx_mngmt_proc.cc +++ b/srsepc/src/mme/s1ap_ctx_mngmt_proc.cc @@ -280,7 +280,8 @@ s1ap_ctx_mngmt_proc::handle_ue_context_release_request(LIBLTE_S1AP_MESSAGE_UECON if(ue_ctx->erabs_ctx[i].state != ERAB_DEACTIVATED) { active = true; - ue_ctx->erabs_ctx[i].state = ERAB_DEACTIVATED; + //ue_ctx->erabs_ctx[i].state = ERAB_DEACTIVATED; + break; } } if(active == true) @@ -288,10 +289,10 @@ s1ap_ctx_mngmt_proc::handle_ue_context_release_request(LIBLTE_S1AP_MESSAGE_UECON //There are active E-RABs, send delete session request m_mme_gtpc->send_delete_session_request(ue_ctx); } - //m_s1ap->delete_ue_ctx(ue_ctx); + m_s1ap->delete_ue_ctx(ue_ctx); //Delete UE context - m_s1ap_log->info("Deleted UE S1-U Context.\n"); + m_s1ap_log->info("Deleted UE Context.\n"); return true; }