pespin has uploaded this change for review. ( 
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(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmo-sigtran 
refs/changes/37/40937/1

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);

--
To view, visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/40937?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: libosmo-sigtran
Gerrit-Branch: master
Gerrit-Change-Id: Ib1c995ed5ad57bc88bd845d10b31fa88488f7849
Gerrit-Change-Number: 40937
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>

Reply via email to