Hello Jenkins Builder,

I'd like you to reexamine a change.  Please visit

    https://gerrit.osmocom.org/2276

to look at the new patch set (#4).

M3UA: Reject Message Class XFER / Type != DATA

This was discovered (and fix validated) using m3ua-sgp-mtr-i-003 of
Michael Tuexen's m3ua-testtol.

Change-Id: I7498f606b031f5a6dfb538d9900c744da6aed36f
---
M src/m3ua.c
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/76/2276/4

diff --git a/src/m3ua.c b/src/m3ua.c
index c29ed00..9a56ff9 100644
--- a/src/m3ua.c
+++ b/src/m3ua.c
@@ -499,6 +499,9 @@
        struct xua_msg *err = NULL;
        struct osmo_ss7_as *as;
 
+       if (xua->hdr.msg_type != M3UA_XFER_DATA)
+               return M3UA_ERR_UNSUPP_MSG_TYPE;
+
        /* Use routing context IE to look up the AS for which the
         * message was received. */
        as = osmo_ss7_as_find_by_rctx(asp->inst, rctx);

-- 
To view, visit https://gerrit.osmocom.org/2276
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I7498f606b031f5a6dfb538d9900c744da6aed36f
Gerrit-PatchSet: 4
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <[email protected]>
Gerrit-Reviewer: Harald Welte <[email protected]>
Gerrit-Reviewer: Jenkins Builder

Reply via email to