Merge pull request #748 from qlyoung/fix-vtysh-exit

lib: actually exit when asked to 'do' so
This commit is contained in:
Jafar Al-Gharaibeh 2017-06-27 10:47:45 -05:00 committed by GitHub
commit 43d372ece4

View File

@ -2212,7 +2212,10 @@ vtysh_read (struct thread *thread)
}
}
vty_event (VTYSH_READ, sock, vty);
if (vty->status == VTY_CLOSE)
vty_close (vty);
else
vty_event (VTYSH_READ, sock, vty);
return 0;
}