From c43352dbc4230574e9d8ee47d3c2e33e9ad33492 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Wed, 9 Nov 2016 15:44:16 +0100 Subject: fix 'osmo-bts-* --version' segfault Call vty_init() before handle_options() to make sure the host.app_info is populated before --version potentially tries to print it. Change-Id: Ic87b5498b57b2f0f876171a15e769b74c28348c1 --- src/common/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common') diff --git a/src/common/main.c b/src/common/main.c index 60839df0..1b2549e0 100644 --- a/src/common/main.c +++ b/src/common/main.c @@ -227,6 +227,7 @@ int bts_main(int argc, char **argv) msgb_talloc_ctx_init(tall_bts_ctx, 100*1024); bts_log_init(NULL); + vty_init(&bts_vty_info); handle_options(argc, argv); @@ -242,7 +243,6 @@ int bts_main(int argc, char **argv) exit(1); } } - vty_init(&bts_vty_info); e1inp_vty_init(); bts_vty_init(bts, &bts_log_info); -- cgit v1.2.3