From 8eeaafba5686b370c46add5caebc447e2514b55a Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Thu, 18 Jan 2018 11:29:13 +0100 Subject: [PATCH] fix compiler warning --- srsepc/src/mme/mme_gtpc.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;