diff --git a/srsepc/src/mme/mme_gtpc.cc b/srsepc/src/mme/mme_gtpc.cc index a6f09148d..651eb4e49 100644 --- a/srsepc/src/mme/mme_gtpc.cc +++ b/srsepc/src/mme/mme_gtpc.cc @@ -217,7 +217,7 @@ mme_gtpc::send_delete_session_request(ue_ctx_t *ue_ctx) { m_mme_gtpc_log->info("Sending GTP-C Delete Session Request request\n"); srslte::gtpc_pdu del_req_pdu; - srslte::gtpc_f_teid_ie *sgw_ctrl_fteid; + srslte::gtpc_f_teid_ie *sgw_ctrl_fteid = NULL; //FIXME the UE control TEID sould be stored in the UE ctxt, not in the E-RAB ctxt //Maybe a mme_s1ap_id to ctrl teid map as well? @@ -230,6 +230,8 @@ mme_gtpc::send_delete_session_request(ue_ctx_t *ue_ctx) break; } } + //FIXME: add proper error handling + assert(sgw_ctrl_fteid != NULL); srslte::gtpc_header *header = &del_req_pdu.header; header->teid_present = true;