aboutsummaryrefslogtreecommitdiffstats
path: root/src/hnbgw_rua.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2015-12-29 19:00:35 +0100
committerHarald Welte <laforge@gnumonks.org>2015-12-29 19:00:35 +0100
commit49287978072f3f777e3954f20e9775c28aee0b8e (patch)
treeb2015e18fc9f2ef787e1b6aadb5472423e5cc1bc /src/hnbgw_rua.c
parent7bccc98cf88ef304646a523764d102630e3d9a93 (diff)
more verbose logging in various places
Diffstat (limited to 'src/hnbgw_rua.c')
-rw-r--r--src/hnbgw_rua.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/hnbgw_rua.c b/src/hnbgw_rua.c
index 961a5c5..9885553 100644
--- a/src/hnbgw_rua.c
+++ b/src/hnbgw_rua.c
@@ -168,6 +168,11 @@ static int rua_to_scu(struct hnb_context *hnb, struct hnbgw_cnlink *cn,
struct hnbgw_context_map *map;
int rc;
+ if (!cn) {
+ DEBUGP(DRUA, "CN=NULL, discarding message\n");
+ return 0;
+ }
+
prim = (struct osmo_scu_prim *) msgb_put(msg, sizeof(*prim));
osmo_prim_init(&prim->oph, SCCP_SAP_USER, type, PRIM_OP_REQUEST, msg);