[mgcp] Fix navigation in the vty hierachy (make exit work)

Make exit from the MGCP node work properly.
This commit is contained in:
Holger Hans Peter Freyther
2010-04-05 22:42:18 +02:00
parent 575b89585f
commit 1ea8dbec90

View File

@@ -2362,6 +2362,9 @@ DEFUN(config_exit,
case VTY_NODE:
vty->node = CONFIG_NODE;
break;
case MGCP_NODE:
vty->node = CONFIG_NODE;
vty->index = NULL;
default:
break;
}