From 82d36ed9ecfa24f0762da6d0065db0ce3dffd714 Mon Sep 17 00:00:00 2001 From: "aa7133@att.com" Date: Tue, 31 Mar 2020 23:20:16 +0300 Subject: [PATCH] version 4.0.7 Fix bug When in debug level logging pointing to wrong pointer cause core dump in the call to translate ASN for E2SM Change-Id: Ie0d604a906f29ff88652d224131d20579fa3fefc Signed-off-by: aa7133@att.com --- RIC-E2-TERMINATION/container-tag.yaml | 2 +- RIC-E2-TERMINATION/sctpThread.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/RIC-E2-TERMINATION/container-tag.yaml b/RIC-E2-TERMINATION/container-tag.yaml index 608a043..e99db30 100644 --- a/RIC-E2-TERMINATION/container-tag.yaml +++ b/RIC-E2-TERMINATION/container-tag.yaml @@ -1,3 +1,3 @@ # The Jenkins job requires a tag to build the Docker image. # Global-JJB script assumes this file is in the repo root. -tag: 4.0.6 +tag: 4.0.7 diff --git a/RIC-E2-TERMINATION/sctpThread.cpp b/RIC-E2-TERMINATION/sctpThread.cpp index f46bef8..b1dabdb 100644 --- a/RIC-E2-TERMINATION/sctpThread.cpp +++ b/RIC-E2-TERMINATION/sctpThread.cpp @@ -1361,7 +1361,7 @@ void asnInitiatingRequest(E2AP_PDU_t *pdu, char *printBuffer; size_t size; FILE *stream = open_memstream(&printBuffer, &size); - asn_fprint(stream, &asn_DEF_E2SM_gNB_NRT_RANfunction_Definition, pdu); + asn_fprint(stream, &asn_DEF_E2SM_gNB_NRT_RANfunction_Definition, ranFunDef); mdclog_write(MDCLOG_DEBUG, "Encoding E2AP PDU past : %s", printBuffer); } auto xml_buffer_size = RECEIVE_SCTP_BUFFER_SIZE * 2; -- 2.16.6