pespin has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-sigtran/+/40937?usp=email )
Change subject: sccp: Allow osmo_sccp_instance_destroy(NULL) ......................................................................
sccp: Allow osmo_sccp_instance_destroy(NULL)
Change-Id: Ib1c995ed5ad57bc88bd845d10b31fa88488f7849 --- M src/sccp_instance.c 1 file changed, 3 insertions(+), 0 deletions(-)
Approvals: osmith: Looks good to me, approved Jenkins Builder: Verified fixeria: Looks good to me, but someone else must approve
diff --git a/src/sccp_instance.c b/src/sccp_instance.c index 1a9e02c..f5b056f 100644 --- a/src/sccp_instance.c +++ b/src/sccp_instance.c @@ -337,6 +337,9 @@ { struct osmo_sccp_user *scu, *scu2;
+ if (!inst) + return; + inst->ss7->sccp = NULL; osmo_ss7_user_unregister(inst->ss7, MTP_SI_SCCP, inst->ss7_user); osmo_ss7_user_destroy(inst->ss7_user);