osmo-hnbgw: make sure osmo_ss7_init() executed successfully

Change-Id: Ia9ecf903e79b282aa4fa88a291424681d0fe9d89
Fixes: CID#206089
This commit is contained in:
Vadim Yanitskiy 2020-01-01 14:05:55 +01:00
parent 16441ffbb3
commit 11a1639b2d
1 changed files with 5 additions and 1 deletions

View File

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