osmo_ss7: avoid crash during disconnect after unknown ASP

Change-Id: Ib201f9f480f25ede0f26d4918007ff22fea28824
This commit is contained in:
Harald Welte 2017-04-15 20:38:28 +02:00
parent 3a09645ca6
commit f7abfe1bb1
1 changed files with 3 additions and 0 deletions

View File

@ -1405,6 +1405,9 @@ static int xua_srv_conn_closed_cb(struct osmo_stream_srv *srv)
LOGP(DLSS7, LOGL_INFO, "%s: SCTP connection closed\n",
asp ? asp->cfg.name : "?");
if (!asp)
return 0;
/* notify ASP FSM and everyone else */
osmo_fsm_inst_dispatch(asp->fi, XUA_ASP_E_SCTP_COMM_DOWN_IND, NULL);