Commit da84a704 authored by V. Tuan Ngo's avatar V. Tuan Ngo Committed by Robert Schmidt

Allocate and add sD to DRB NSSAI in case sD != 0xffffff

parent e15fa14c
......@@ -108,8 +108,12 @@ static void f1ap_write_drb_nssai(const nssai_t *nssai, F1AP_SNSSAI_t *asn1_nssai
OCTET_STRING_fromBuf(&asn1_nssai->sST, (char *)&nssai->sst, 1);
/* OPTIONAL */
if (nssai->sd != 0xffffff)
OCTET_STRING_fromBuf(asn1_nssai->sD, (char *)&nssai->sd, 3);
if (nssai->sd != 0xffffff) {
char sd_buffer[3];
INT24_TO_BUFFER(nssai->sd, sd_buffer);
asn1cCalloc(asn1_nssai->sD, sD);
OCTET_STRING_fromBuf(sD, sd_buffer, 3);
}
}
static void f1ap_write_flows_mapped(const f1ap_flows_mapped_to_drb_t *flows_mapped, F1AP_Flows_Mapped_To_DRB_List_t *asn1_flows_mapped, int n)
......
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