fix 'osmo-nitb --version' segfault
Call vty_init() before handle_options() to make sure the host.app_info is
populated before --version potentially tries to print it.
The segfault was introduced by 2c05f75bbf
in a
recent MSC-split merge.
Change-Id: Ice91256d72b9eabd52709352ba6cc6a42af2921b
This commit is contained in:
parent
80abe522e2
commit
fa9abaca26
|
@ -269,6 +269,7 @@ int main(int argc, char **argv)
|
|||
osmo_init_logging(&log_info);
|
||||
osmo_stats_init(tall_bsc_ctx);
|
||||
bts_init();
|
||||
vty_init(&vty_info);
|
||||
|
||||
/* Parse options */
|
||||
handle_options(argc, argv);
|
||||
|
@ -282,7 +283,6 @@ int main(int argc, char **argv)
|
|||
}
|
||||
|
||||
/* Initialize VTY */
|
||||
vty_init(&vty_info);
|
||||
bsc_vty_init(&log_info, bsc_gsmnet);
|
||||
ctrl_vty_init(tall_bsc_ctx);
|
||||
|
||||
|
|
Loading…
Reference in New Issue