fix msc_vty_go_parent(): add missing case for MGW_NODE

A new VTY node was added in commit [1], but bsc_vty_go_parent() was
not updated.  Because of that, commands following the MGW node may
crash osmo-msc.  See related patch [2] for more details.

Change-Id: I2422fa9152ecc8c4be1f2487ee016c3fe737e653
Fixes: [1] b44cf2d575
Related: [2] osmo-bsc.git Id3050ff7e2402c33ee76c7bf0cc83603c0cc6dfc
This commit is contained in:
Vadim Yanitskiy 2023-02-05 04:21:18 +07:00
parent 603e1fc925
commit 1289c7b1bc
1 changed files with 5 additions and 0 deletions

View File

@ -318,6 +318,11 @@ static int msc_vty_go_parent(struct vty *vty)
vty->node = CONFIG_NODE;
vty->index = NULL;
break;
case MGW_NODE:
OSMO_ASSERT(msc_network != NULL);
vty->node = GSMNET_NODE;
vty->index = msc_network;
break;
case SMPP_ESME_NODE:
vty->node = SMPP_NODE;
vty->index = NULL;