osmo_ss7: avoid crash during disconnect after unknown ASP
Change-Id: Ib201f9f480f25ede0f26d4918007ff22fea28824
This commit is contained in:
parent
3a09645ca6
commit
f7abfe1bb1
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue