aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexander Huemer <alexander.huemer@xx.vu>2012-07-04 11:31:54 +0200
committerHarald Welte <laforge@gnumonks.org>2012-07-11 11:00:02 +0200
commite62651f22064ac44930ec91eda7f74b1014b420f (patch)
tree410965f32c6287081c7d7bc4922aaa741d0d5a06 /src
parent2d6563b78e699ee8ac1bd3bc556889ab8eff975c (diff)
correct inverted logic from commit f3ba8a
Diffstat (limited to 'src')
-rw-r--r--src/vty/vty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vty/vty.c b/src/vty/vty.c
index 67ee100f..e529ee70 100644
--- a/src/vty/vty.c
+++ b/src/vty/vty.c
@@ -1650,7 +1650,7 @@ static int vty_config_write(struct vty *vty)
vty_out(vty, "line vty%s", VTY_NEWLINE);
/* login */
- if (password_check)
+ if (!password_check)
vty_out(vty, " no login%s", VTY_NEWLINE);
vty_out(vty, "!%s", VTY_NEWLINE);