@@ -1638,10 +1638,13 @@ int main(int argc, char **argv)
/* start telnet after reading config for vty_get_bind_addr() */
LOGP(DNAT, LOGL_NOTICE, "VTY at %s %d\n",
vty_get_bind_addr(), OSMO_VTY_PORT_BSC_NAT);
- telnet_init_dynif(tall_bsc_ctx, NULL, vty_get_bind_addr(),
- OSMO_VTY_PORT_BSC_NAT);
+ if (telnet_init_dynif(tall_bsc_ctx, NULL, vty_get_bind_addr(),
+ OSMO_VTY_PORT_BSC_NAT)) {
+ fprintf(stderr, "Creating VTY telnet line failed\n");
+ return -5;
+ }
- /* over rule the VTY config */
+ /* over rule the VTY config for MSC IP */
if (msc_ip)
bsc_nat_set_msc_ip(nat, msc_ip);