Change in osmo-hnbgw[master]: hnbgw_cn.c: Guard against null ss7 ptr during init
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-hnbgw/+/28484 ) Change subject: hnbgw_cn.c: Guard against null ss7 ptr during init ...................................................................... hnbgw_cn.c: Guard against null ss7 ptr during init Fixes: Coverity CID#272989 Change-Id: Ic787d52a3c2e73ac272735a33b20bb94e29fad95 --- M src/osmo-hnbgw/hnbgw_cn.c 1 file changed, 2 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-hnbgw refs/changes/84/28484/1 diff --git a/src/osmo-hnbgw/hnbgw_cn.c b/src/osmo-hnbgw/hnbgw_cn.c index 5499e5d..7c1dc9d 100644 --- a/src/osmo-hnbgw/hnbgw_cn.c +++ b/src/osmo-hnbgw/hnbgw_cn.c @@ -541,6 +541,8 @@ LOGP(DRANAP, LOGL_NOTICE, "No cs7 instance configured for IuCS nor IuPS," " creating default instance\n"); ss7 = osmo_ss7_instance_find_or_create(gw, 0); + if (!ss7) + return -1; ss7->cfg.primary_pc = (23 << 3) + 5; } -- To view, visit https://gerrit.osmocom.org/c/osmo-hnbgw/+/28484 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-hnbgw Gerrit-Branch: master Gerrit-Change-Id: Ic787d52a3c2e73ac272735a33b20bb94e29fad95 Gerrit-Change-Number: 28484 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin@sysmocom.de> Gerrit-MessageType: newchange
participants (1)
-
pespin