aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/osmo-nitb
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-12-28 18:56:19 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-12-31 18:25:36 +0100
commitfa9abaca261ffd11fa86fa4ff109df719b37c5ff (patch)
tree0d0dc14c51196fca23a0a3c580744079078cfc14 /openbsc/src/osmo-nitb
parent80abe522e2ddc979d994530f21b103808fc465d7 (diff)
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 2c05f75bbf3d9a69eee1fe78eb5552acf1d7671d in a recent MSC-split merge. Change-Id: Ice91256d72b9eabd52709352ba6cc6a42af2921b
Diffstat (limited to 'openbsc/src/osmo-nitb')
-rw-r--r--openbsc/src/osmo-nitb/bsc_hack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/osmo-nitb/bsc_hack.c b/openbsc/src/osmo-nitb/bsc_hack.c
index 992d4c855..bbcdd1be9 100644
--- a/openbsc/src/osmo-nitb/bsc_hack.c
+++ b/openbsc/src/osmo-nitb/bsc_hack.c
@@ -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);