diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2018-05-09 15:19:48 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2018-05-09 15:19:56 +0700 |
commit | 01eea0aa4284763e8953c2bbb6bf305144b0ae2c (patch) | |
tree | c807d299f70f6f9bf1d37d54517783d3c456f00f /CommonLibs | |
parent | 55df1e43e348af3e24af9e8c4589141bb1e32fef (diff) |
trx_vty.c: fix: use CONFIG_NODE as parent by default
There are some configuration nodes, which are handled by extenral
libraries, such as libosmoctrl. So, when switching back to the
parent node, this should be kept in mind.
Instead of aborting, let's got to the CONFIG_NODE by default.
Fixes: OS#3250
Change-Id: Ia0600a46d19825806e5aed9257b6c57c3907808b
Diffstat (limited to 'CommonLibs')
-rw-r--r-- | CommonLibs/trx_vty.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/CommonLibs/trx_vty.c b/CommonLibs/trx_vty.c index 843d19f..e69df77 100644 --- a/CommonLibs/trx_vty.c +++ b/CommonLibs/trx_vty.c @@ -503,7 +503,9 @@ static int trx_vty_go_parent(struct vty *vty) vty->index_sub = NULL; break; default: - OSMO_ASSERT(0); + vty->node = CONFIG_NODE; + vty->index = NULL; + vty->index_sub = NULL; } return vty->node; |