Commit cbc7822c authored by Stone WU's avatar Stone WU Committed by Jerome Peraldi

bug #125147: fix segment fault issue for copy keys in rrc ASSecurityConfig

parent 03d0ff08
......@@ -6965,12 +6965,18 @@ void rrc_eNB_as_security_configuration_req(
* Each RB entry will be freed invidually when the pdcp_remove_ue is invoked
* during the UE release process.
*/
kRRCint = CALLOC(1,32);
kUPenc = CALLOC(1,16);
kRRCenc = CALLOC(1,16);
memcpy(kRRCint,ASSecConfReq->Integrity.kRRCint, 32);
memcpy(kUPenc,ASSecConfReq->Ciphering.kUPenc, 16);
memcpy(kRRCenc,ASSecConfReq->Ciphering.kRRCenc, 16);
if(ASSecConfReq->Integrity.kRRCint) {
kRRCint = CALLOC(1,32);
memcpy(kRRCint,ASSecConfReq->Integrity.kRRCint, 32);
}
if(ASSecConfReq->Ciphering.kUPenc) {
kUPenc = CALLOC(1,16);
memcpy(kUPenc,ASSecConfReq->Ciphering.kUPenc, 16);
}
if(ASSecConfReq->Ciphering.kRRCenc) {
kRRCenc = CALLOC(1,16);
memcpy(kRRCenc,ASSecConfReq->Ciphering.kRRCenc, 16);
}
pdcp_config_set_security(
ctxt_pP,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment