fixeria has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-msc/+/31192 )
Change subject: fix msc_vty_go_parent(): add missing case for MGW_NODE
......................................................................
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] b44cf2d5755e36d8b9a4406cc71538e3d6b5c859
Related: [2] osmo-bsc.git Id3050ff7e2402c33ee76c7bf0cc83603c0cc6dfc
---
M src/osmo-msc/msc_main.c
1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-msc refs/changes/92/31192/1
diff --git a/src/osmo-msc/msc_main.c b/src/osmo-msc/msc_main.c
index 16a38fb..0f1047b 100644
--- a/src/osmo-msc/msc_main.c
+++ b/src/osmo-msc/msc_main.c
@@ -318,6 +318,11 @@
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;
--
To view, visit
https://gerrit.osmocom.org/c/osmo-msc/+/31192
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-Change-Id: I2422fa9152ecc8c4be1f2487ee016c3fe737e653
Gerrit-Change-Number: 31192
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: newchange