summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-01-17 15:20:13 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2020-01-17 15:20:13 +0100
commita84fa351d37651dc999649eaad0cb6bd5918e6b4 (patch)
tree49745bcb1f517d92b6805f9d410a3be22cd75c45
parent2734e1c38cf30094cbb8b24025031ced8396d92b (diff)
sccp2sua.c: Log malformed SUA message
-rw-r--r--src/sccp2sua.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sccp2sua.c b/src/sccp2sua.c
index 2be27ea..92a3907 100644
--- a/src/sccp2sua.c
+++ b/src/sccp2sua.c
@@ -1468,8 +1468,11 @@ struct msgb *osmo_sua_to_sccp(struct xua_msg *xua)
goto out_err;
}
- if (rc < 0)
+ if (rc < 0) {
+ LOGP(DLSUA, LOGL_ERROR, "Malformed SUA message %s\n",
+ xua_hdr_dump(xua, &xua_dialect_sua));
goto out_err;
+ }
return msg;