Commit 0869aae7 authored by Giulio Carota's avatar Giulio Carota Committed by Robert Schmidt

Initialize RRC's DU SetupReq to zero

parent 5fbd40d1
...@@ -150,7 +150,7 @@ void rrc_gNB_process_f1_setup_req(f1ap_setup_req_t *req, sctp_assoc_t assoc_id) ...@@ -150,7 +150,7 @@ void rrc_gNB_process_f1_setup_req(f1ap_setup_req_t *req, sctp_assoc_t assoc_id)
/* ITTI will free the setup request message via free(). So the memory /* ITTI will free the setup request message via free(). So the memory
* "inside" of the message will remain, but the "outside" container no, so * "inside" of the message will remain, but the "outside" container no, so
* allocate memory and copy it in */ * allocate memory and copy it in */
du->setup_req = malloc(sizeof(*du->setup_req)); du->setup_req = calloc(1,sizeof(*du->setup_req));
AssertFatal(du->setup_req != NULL, "out of memory\n"); AssertFatal(du->setup_req != NULL, "out of memory\n");
*du->setup_req = *req; *du->setup_req = *req;
if (mib != NULL && sib1 != NULL) { if (mib != NULL && sib1 != NULL) {
......
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