aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2020-01-01 14:05:55 +0100
committerVadim Yanitskiy <axilirator@gmail.com>2020-01-01 14:05:57 +0100
commit11a1639b2d7a3bf44892e6b31ccbfce7406d8727 (patch)
tree000ad226b566dae5b8c4fb0c63fcb0eb064a8cf8
parent16441ffbb3759163db7e3ed60d6677160f4a1160 (diff)
osmo-hnbgw: make sure osmo_ss7_init() executed successfully
Change-Id: Ia9ecf903e79b282aa4fa88a291424681d0fe9d89 Fixes: CID#206089
-rw-r--r--src/hnbgw.c6
1 files changed, 5 insertions, 1 deletions
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 @@ int main(int argc, char **argv)
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);