From e62651f22064ac44930ec91eda7f74b1014b420f Mon Sep 17 00:00:00 2001 From: Alexander Huemer Date: Wed, 4 Jul 2012 11:31:54 +0200 Subject: correct inverted logic from commit f3ba8a --- src/vty/vty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3