From 190015435b3fbbd671ae7c244553592f9bcabbc9 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Tue, 17 Apr 2018 13:30:37 +0100 Subject: [PATCH] Fixed some un-initialized variables in E-RAB Setup Response. --- srsenb/src/upper/rrc.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/srsenb/src/upper/rrc.cc b/srsenb/src/upper/rrc.cc index 93b9f8499..2afedad08 100644 --- a/srsenb/src/upper/rrc.cc +++ b/srsenb/src/upper/rrc.cc @@ -1090,9 +1090,13 @@ void rrc::ue::notify_s1ap_ue_ctxt_setup_complete() void rrc::ue::notify_s1ap_ue_erab_setup_response(LIBLTE_S1AP_E_RABTOBESETUPLISTBEARERSUREQ_STRUCT *e) { LIBLTE_S1AP_MESSAGE_E_RABSETUPRESPONSE_STRUCT res; + res.ext=false; res.E_RABSetupListBearerSURes.len = 0; res.E_RABFailedToSetupListBearerSURes.len = 0; + res.CriticalityDiagnostics_present = false; + res.E_RABFailedToSetupListBearerSURes_present = false; + for(uint32_t i=0; ilen; i++) { res.E_RABSetupListBearerSURes_present = true; LIBLTE_S1AP_E_RABTOBESETUPITEMBEARERSUREQ_STRUCT *erab = &e->buffer[i];