aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-08-11 04:27:25 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-08-11 04:27:25 +0800
commit83594c1f2c891bdabf510ee985b311e13eb73cda (patch)
tree73aa9daca87d77a535fd7caa82a7af91462fadbf
parent7e1524644ba0143e3cfeb70782a9e0cbcbcaff38 (diff)
oml: Workaround for vty misusage...
Move the OML_NODE below the CONFIG_NODE so that the vty->index will not be restored when we exit the node. If we do restore the node we will end up with a double free.
-rw-r--r--openbsc/include/vty/command.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/include/vty/command.h b/openbsc/include/vty/command.h
index 335d480be..71e82c576 100644
--- a/openbsc/include/vty/command.h
+++ b/openbsc/include/vty/command.h
@@ -65,6 +65,7 @@ enum node_type {
VIEW_NODE, /* View node. Default mode of vty interface. */
AUTH_ENABLE_NODE, /* Authentication mode for change enable. */
ENABLE_NODE, /* Enable node. */
+ OML_NODE,
CONFIG_NODE, /* Config node. Default mode of config file. */
SERVICE_NODE, /* Service node. */
DEBUG_NODE, /* Debug node. */
@@ -107,7 +108,6 @@ enum node_type {
TS_NODE,
SUBSCR_NODE,
MGCP_NODE,
- OML_NODE,
};
/* Node which has some commands and prompt string and configuration