summaryrefslogtreecommitdiffstats
path: root/lib/vty.c
diff options
context:
space:
mode:
authorChris Hall <GMCH@hestia.halldom.com>2010-04-28 12:20:52 +0100
committerChris Hall <GMCH@hestia.halldom.com>2010-04-28 12:20:52 +0100
commit4876784d99d81f66b07f9806ef5660d6cc229e58 (patch)
treebcca6c8941f24cb94e656447c5f690152d43c34e /lib/vty.c
parent6c2482c466aa420875f330893dc36101c3e7fd46 (diff)
downloadquagga-4876784d99d81f66b07f9806ef5660d6cc229e58.tar.bz2
quagga-4876784d99d81f66b07f9806ef5660d6cc229e58.tar.xz
Fix vty being closed while waiting on '--more--' prompt.
The vty_half_close() did not properly take care of the CLI state when in "cli_more_wait" state. This fix tests for cli_more_wait state in vty_half_close() and explicitly exits that state. (Instead of letting the state be cleared implicitly, which didn't quite tidy up quickly enough.)
Diffstat (limited to 'lib/vty.c')
-rw-r--r--lib/vty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vty.c b/lib/vty.c
index 749b2155..51bf4a5a 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -23,7 +23,7 @@
#include "zebra.h"
#include <stdbool.h>
-#include "version.h"
+#include "lib/version.h"
#include "vty_io.h"
#include "vty.h"