pespin has submitted this change. ( 
https://gerrit.osmocom.org/c/libosmo-sigtran/+/42239?usp=email )

Change subject: Use new libosmo-asn1-tcap API osmo_asn1_tcap_TCMessage_decode()
......................................................................

Use new libosmo-asn1-tcap API osmo_asn1_tcap_TCMessage_decode()

This allows passing a talloc context used to allocate memory when
decoding the message.

Related: SYS#5423
Related: OS#6965
Change-Id: Iebeb2808c54c5b82026a1b31d985aa73f602b42a
---
M TODO-RELEASE
M src/tcap_as_loadshare.c
2 files changed, 2 insertions(+), 1 deletion(-)

Approvals:
  laforge: Looks good to me, but someone else must approve
  Jenkins Builder: Verified
  daniel: Looks good to me, but someone else must approve
  osmith: Looks good to me, approved




diff --git a/TODO-RELEASE b/TODO-RELEASE
index 0ed7189..ef38361 100644
--- a/TODO-RELEASE
+++ b/TODO-RELEASE
@@ -7,3 +7,4 @@
 # If any interfaces have been added since the last public release: c:r:a + 1.
 # If any interfaces have been removed or changed since the last public 
release: c:r:0.
 #library       what                    description / commit summary line
+libosmo-asn1-tcap   >0.2.1    osmo_asn1_tcap_TCMessage_decode()
diff --git a/src/tcap_as_loadshare.c b/src/tcap_as_loadshare.c
index 5a52f83..f7ae3b8 100644
--- a/src/tcap_as_loadshare.c
+++ b/src/tcap_as_loadshare.c
@@ -96,7 +96,7 @@

        OSMO_ASSERT(ids);

-       rc = osmo_asn1_tcap_decode(tcapmsg, data, len);
+       rc = osmo_asn1_tcap_TCMessage_decode(tcapmsg, data, len, as);
        if (rc < 0) {
                LOGPAS(as, DLTCAP, LOGL_NOTICE, "Error decoding TCAP message 
rc: %d, message: %s\n",
                       rc, osmo_hexdump(data, len));

--
To view, visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/42239?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: libosmo-sigtran
Gerrit-Branch: master
Gerrit-Change-Id: Iebeb2808c54c5b82026a1b31d985aa73f602b42a
Gerrit-Change-Number: 42239
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <[email protected]>
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: lynxis lazus <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>

Reply via email to