fix compiler warning

This commit is contained in:
Andre Puschmann 2018-01-18 11:29:13 +01:00
parent 1efc4e678a
commit 8eeaafba56
1 changed files with 3 additions and 1 deletions

View File

@ -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;