handle telnet_init_default() error case
Closes: CID#307532 Change-Id: I0210b535b844529e217fd5d6ffb01f94a262dc9c
This commit is contained in:
parent
7b6171b473
commit
e9ce31876d
|
@ -207,8 +207,12 @@ int main(int argc, char **argv)
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* start telne tafte reading config for vty_get_bind_adr() */
|
/* start telnet after reading config */
|
||||||
telnet_init_default(rec_tall_ctx, NULL, 4444);
|
rc = telnet_init_default(rec_tall_ctx, NULL, 4444);
|
||||||
|
if (rc < 0) {
|
||||||
|
fprintf(stderr, "Cannot open telnet server port: %s\n", strerror(errno));
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
osmo_select_main(0);
|
osmo_select_main(0);
|
||||||
|
|
Loading…
Reference in New Issue