summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-06-22 21:04:56 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-06-25 22:35:05 +0200
commit019fb7211523be6fd672af29f8ce40a74ba3270c (patch)
treec5fb05987e01410cbbfe319a7ed410bbea41fedc
parent6d60152b884eb8be100df0f190f5204b3a3f88e1 (diff)
sccp_scoc fsm: abort with error log on null conn
-rw-r--r--src/sccp_scoc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sccp_scoc.c b/src/sccp_scoc.c
index 628b63b..61d98b8 100644
--- a/src/sccp_scoc.c
+++ b/src/sccp_scoc.c
@@ -815,6 +815,12 @@ static void scoc_fsm_conn_pend_out(struct osmo_fsm_inst *fi, uint32_t event, voi
struct osmo_scu_prim *prim = NULL;
struct xua_msg *xua = NULL;
+ if (!conn) {
+ LOGPFSML(fi, LOGL_ERROR, "SCCP connection is NULL, ignoring event %s\n",
+ osmo_fsm_event_name(fi->fsm, event));
+ return;
+ }
+
switch (event) {
case SCOC_E_SCU_N_DISC_REQ:
prim = data;