Commit 2c2b7416 authored by Guido Casati's avatar Guido Casati

Check numDlUpParam size when processing DlUpParamList

parent 1d10a73b
...@@ -261,10 +261,12 @@ void e1_bearer_context_modif(const e1ap_bearer_mod_req_t *req) ...@@ -261,10 +261,12 @@ void e1_bearer_context_modif(const e1ap_bearer_mod_req_t *req)
if (f1inst < 0) // no F1-U? if (f1inst < 0) // no F1-U?
continue; // nothing to do continue; // nothing to do
in_addr_t addr = {0}; /* Loop through DL UP Transport Layer params list
memcpy(&addr, &to_modif->DlUpParamList[0].tlAddress, sizeof(in_addr_t)); * and update GTP tunnel outgoing addr and TEID */
for (int k = 0; k < to_modif->numDlUpParam; k++) {
GtpuUpdateTunnelOutgoingAddressAndTeid(f1inst, req->gNB_cu_cp_ue_id, to_modif->id, addr, to_modif->DlUpParamList[0].teId); in_addr_t addr = to_modif->DlUpParamList[k].tlAddress;
GtpuUpdateTunnelOutgoingAddressAndTeid(f1inst, req->gNB_cu_cp_ue_id, to_modif->id, addr, to_modif->DlUpParamList[k].teId);
}
} }
} }
......
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