Commit 3234c12c authored by Haruki NAOI's avatar Haruki NAOI

Fix: double free in S1AP.

(cherry picked from commit 41bddc6a80b4ae17c41a807da49f617fe90cc4e9)
parent 14e8672a
...@@ -923,7 +923,7 @@ rrc_eNB_process_S1AP_DOWNLINK_NAS( ...@@ -923,7 +923,7 @@ rrc_eNB_process_S1AP_DOWNLINK_NAS(
ue_initial_id, ue_initial_id,
eNB_ue_s1ap_id); eNB_ue_s1ap_id);
itti_send_msg_to_task (TASK_S1AP, instance, msg_fail_p); itti_send_msg_to_task (TASK_S1AP, instance, msg_fail_p);
free(S1AP_DOWNLINK_NAS (msg_p).nas_pdu.buffer); //free(S1AP_DOWNLINK_NAS (msg_p).nas_pdu.buffer);
return (-1); return (-1);
} else { } else {
PROTOCOL_CTXT_SET_BY_INSTANCE(&ctxt, instance, ENB_FLAG_YES, ue_context_p->ue_context.rnti, 0, 0); PROTOCOL_CTXT_SET_BY_INSTANCE(&ctxt, instance, ENB_FLAG_YES, ue_context_p->ue_context.rnti, 0, 0);
......
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