fix uninit value in NAS and move emm_info on stack

master
Andre Puschmann 5 years ago
parent b0d2584795
commit d25a734200

@ -92,8 +92,6 @@ private:
std::vector<srslte::plmn_id_t> known_plmns; std::vector<srslte::plmn_id_t> known_plmns;
LIBLTE_MME_EMM_INFORMATION_MSG_STRUCT emm_info;
// Security context // Security context
struct nas_sec_ctxt{ struct nas_sec_ctxt{
uint8_t ksi; uint8_t ksi;

@ -1335,6 +1335,7 @@ void nas::parse_esm_information_request(uint32_t lcid, unique_byte_buffer_t pdu)
void nas::parse_emm_information(uint32_t lcid, unique_byte_buffer_t pdu) void nas::parse_emm_information(uint32_t lcid, unique_byte_buffer_t pdu)
{ {
LIBLTE_MME_EMM_INFORMATION_MSG_STRUCT emm_info = {};
liblte_mme_unpack_emm_information_msg((LIBLTE_BYTE_MSG_STRUCT*)pdu.get(), &emm_info); liblte_mme_unpack_emm_information_msg((LIBLTE_BYTE_MSG_STRUCT*)pdu.get(), &emm_info);
std::string str = emm_info_str(&emm_info); std::string str = emm_info_str(&emm_info);
nas_log->info("Received EMM Information: %s\n", str.c_str()); nas_log->info("Received EMM Information: %s\n", str.c_str());

Loading…
Cancel
Save