Bugfix: fix use-after-free of UE caps
This commit is contained in:
@@ -338,9 +338,6 @@ void ue_context_setup_request(const f1ap_ue_context_setup_t *req)
|
|||||||
UE->capability = ue_cap;
|
UE->capability = ue_cap;
|
||||||
if (ue_cap != NULL) {
|
if (ue_cap != NULL) {
|
||||||
// store the new UE capabilities, and update the cellGroupConfig
|
// store the new UE capabilities, and update the cellGroupConfig
|
||||||
ASN_STRUCT_FREE(asn_DEF_NR_UE_NR_Capability, UE->capability);
|
|
||||||
UE->capability = ue_cap;
|
|
||||||
LOG_I(NR_MAC, "UE %04x: received capabilities, updating CellGroupConfig\n", UE->rnti);
|
|
||||||
NR_ServingCellConfigCommon_t *scc = mac->common_channels[0].ServingCellConfigCommon;
|
NR_ServingCellConfigCommon_t *scc = mac->common_channels[0].ServingCellConfigCommon;
|
||||||
update_cellGroupConfig(new_CellGroup, UE->uid, UE->capability, &mac->radio_config, scc);
|
update_cellGroupConfig(new_CellGroup, UE->uid, UE->capability, &mac->radio_config, scc);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user