Commit 576e537f authored by Tien Thinh NGUYEN's avatar Tien Thinh NGUYEN

Fix issue when freeing sourceToTarget_TransparentContainer(HandoverRequired)

parent e649c742
......@@ -20,6 +20,8 @@
*/
#include "HandoverRequiredMsg.hpp"
#include "conversions.hpp"
#include "logger.hpp"
extern "C" {
......@@ -269,9 +271,10 @@ bool HandoverRequiredMsg::decodeFromPdu(Ngap_NGAP_PDU_t* ngapMsgPdu) {
Ngap_Criticality_reject &&
handoverRequiredIEs->protocolIEs.list.array[i]->value.present ==
Ngap_HandoverRequiredIEs__value_PR_SourceToTarget_TransparentContainer) {
sourceToTarget_TransparentContainer =
conv::octet_string_copy(
sourceToTarget_TransparentContainer,
handoverRequiredIEs->protocolIEs.list.array[i]
->value.choice.SourceToTarget_TransparentContainer;
->value.choice.SourceToTarget_TransparentContainer);
} else {
Logger::ngap().error(
"Decoded NGAP SourceToTarget_TransparentContainer IE error");
......
......@@ -814,6 +814,7 @@ int handover_notification(
int handover_request(
const sctp_assoc_id_t assoc_id, const sctp_stream_id_t stream,
struct Ngap_NGAP_PDU* message_p) {
// TODO: To be verified
Logger::ngap().debug(
"Sending ITTI Handover Resource Allocation (HandoverRequest) to "
"TASK_AMF_N2");
......@@ -846,7 +847,7 @@ int handover_request_ack(
const sctp_assoc_id_t assoc_id, const sctp_stream_id_t stream,
struct Ngap_NGAP_PDU* message_p) {
Logger::ngap().debug("Handling Handover Request Ack (AMF->AN)");
output_wrapper::print_asn_msg(&asn_DEF_Ngap_NGAP_PDU, message_p);
HandoverRequestAck* handover_request_ack = new HandoverRequestAck();
if (!handover_request_ack->decodeFromPdu(message_p)) {
......
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