summaryrefslogtreecommitdiffstats
path: root/Src/osmolib/src/shared/libosmocore/src/vty/vty.c
diff options
context:
space:
mode:
authorroot2012-02-28 14:15:19 +0100
committerroot2012-02-28 14:15:19 +0100
commit1116885d96725ce064db04604e4d197a136b163c (patch)
tree22ba472d309f1ac66918f09cc63bb9be057cf579 /Src/osmolib/src/shared/libosmocore/src/vty/vty.c
parentcompiled version added (diff)
downloadimsi-catcher-detection-1116885d96725ce064db04604e4d197a136b163c.tar.gz
imsi-catcher-detection-1116885d96725ce064db04604e4d197a136b163c.tar.xz
imsi-catcher-detection-1116885d96725ce064db04604e4d197a136b163c.zip
updated codebase to latest version of osmocombb
Diffstat (limited to 'Src/osmolib/src/shared/libosmocore/src/vty/vty.c')
-rw-r--r--Src/osmolib/src/shared/libosmocore/src/vty/vty.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/Src/osmolib/src/shared/libosmocore/src/vty/vty.c b/Src/osmolib/src/shared/libosmocore/src/vty/vty.c
index 5f5e6a4..da03596 100644
--- a/Src/osmolib/src/shared/libosmocore/src/vty/vty.c
+++ b/Src/osmolib/src/shared/libosmocore/src/vty/vty.c
@@ -802,9 +802,11 @@ static void vty_backward_word(struct vty *vty)
static void vty_down_level(struct vty *vty)
{
vty_out(vty, "%s", VTY_NEWLINE);
- /* FIXME: we need to call the exit function of the specific node
- * in question, not this generic one that doesn't know all nodes */
- (*config_exit_cmd.func) (NULL, vty, 0, NULL);
+ /* call the exit function of the specific node */
+ if (vty->node > CONFIG_NODE)
+ vty_go_parent(vty);
+ else
+ (*config_exit_cmd.func) (NULL, vty, 0, NULL);
vty_prompt(vty);
vty->cp = 0;
}