summaryrefslogtreecommitdiffstats
path: root/lib/vty_cli.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vty_cli.c')
-rw-r--r--lib/vty_cli.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/vty_cli.c b/lib/vty_cli.c
index fab266b1..b4791365 100644
--- a/lib/vty_cli.c
+++ b/lib/vty_cli.c
@@ -349,6 +349,9 @@ uty_cli_start(vty_io vio)
extern void
uty_cli_close(vty_io vio)
{
+ VTY_ASSERT_LOCKED() ;
+ assert(vio->type == VTY_TERM) ;
+
cq_revoke(vio->vty) ;
vio->cli_blocked = 1 ; /* don't attempt any more */