From 389753e5a076889677110bd8457b25b3cc033d94 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Thu, 2 May 2019 11:57:06 +0200 Subject: [PATCH] init mac_key in reestab request packing fixes issue seen by coverity that is not really an issue because the integrity generation will init it anyway --- srsue/src/upper/rrc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srsue/src/upper/rrc.cc b/srsue/src/upper/rrc.cc index d31033592..01dd86fbc 100644 --- a/srsue/src/upper/rrc.cc +++ b/srsue/src/upper/rrc.cc @@ -1347,7 +1347,7 @@ void rrc::send_con_restablish_request(asn1::rrc::reest_cause_e cause) cellid, pci, crnti, N_bytes, N_bits); // Compute MAC-I - uint8_t mac_key[4]; + uint8_t mac_key[4] = {}; switch(integ_algo) { case INTEGRITY_ALGORITHM_ID_128_EIA1: security_128_eia1(&k_rrc_int[16],