Change in osmo-iuh[master]: osmo-hnbgw: make sure osmo_ss7_init() executed successfully

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Wed Jan 1 16:09:22 UTC 2020


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-iuh/+/16693 )

Change subject: osmo-hnbgw: make sure osmo_ss7_init() executed successfully
......................................................................

osmo-hnbgw: make sure osmo_ss7_init() executed successfully

Change-Id: Ia9ecf903e79b282aa4fa88a291424681d0fe9d89
Fixes: CID#206089
---
M src/hnbgw.c
1 file changed, 5 insertions(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/src/hnbgw.c b/src/hnbgw.c
index 0db04af..70ee25b 100644
--- a/src/hnbgw.c
+++ b/src/hnbgw.c
@@ -536,7 +536,11 @@
 	if (rc < 0)
 		exit(1);
 
-	osmo_ss7_init();
+	rc = osmo_ss7_init();
+	if (rc < 0) {
+		LOGP(DMAIN, LOGL_FATAL, "osmo_ss7_init() failed with rc=%d\n", rc);
+		exit(1);
+	}
 
 	vty_info.copyright = osmo_hnbgw_copyright;
 	vty_init(&vty_info);

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-iuh/+/16693
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-iuh
Gerrit-Branch: master
Gerrit-Change-Id: Ia9ecf903e79b282aa4fa88a291424681d0fe9d89
Gerrit-Change-Number: 16693
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <axilirator at gmail.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200101/859385e9/attachment.htm>


More information about the gerrit-log mailing list