make sure we terminate bsc_hack if the OML/RSL listening sockets cannot be created

This commit is contained in:
Harald Welte 2009-05-01 15:43:49 +00:00
parent b463060db9
commit cf55978e48
2 changed files with 3 additions and 2 deletions

View File

@ -975,9 +975,8 @@ static int bootstrap_network(void)
bootstrap_bts(bts);
bts->ip_access.site_id = 1800;
bts->ip_access.bts_id = 0;
ipaccess_setup(gsmnet);
return ipaccess_setup(gsmnet);
}
}
static void create_pcap_file(char *file)

View File

@ -587,6 +587,8 @@ int ipaccess_setup(struct gsm_network *gsmnet)
/* Listen for OML connections */
ret = make_sock(&e1h->listen_fd, 3002, listen_fd_cb);
if (ret < 0)
return ret;
/* Listen for RSL connections */
ret = make_sock(&e1h->rsl_listen_fd, 3003, rsl_listen_fd_cb);