Reverted changes in UE ctxt release request to avoid segfault.

master
Pedro Alvarez 7 years ago
parent be7cde7639
commit 4634d13a3b

@ -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) if(ue_ctx->erabs_ctx[i].state != ERAB_DEACTIVATED)
{ {
active = true; active = true;
ue_ctx->erabs_ctx[i].state = ERAB_DEACTIVATED; //ue_ctx->erabs_ctx[i].state = ERAB_DEACTIVATED;
break;
} }
} }
if(active == true) 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 //There are active E-RABs, send delete session request
m_mme_gtpc->send_delete_session_request(ue_ctx); 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 //Delete UE context
m_s1ap_log->info("Deleted UE S1-U Context.\n"); m_s1ap_log->info("Deleted UE Context.\n");
return true; return true;
} }

Loading…
Cancel
Save