summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vty/vty.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vty/vty.c b/src/vty/vty.c
index aab0607d..ad535371 100644
--- a/src/vty/vty.c
+++ b/src/vty/vty.c
@@ -1694,6 +1694,8 @@ static int vty_config_write(struct vty *vty)
/* login */
if (!password_check)
vty_out(vty, " no login%s", VTY_NEWLINE);
+ else
+ vty_out(vty, " login%s", VTY_NEWLINE);
/* bind */
if (vty_bind_addr && (strcmp(vty_bind_addr, VTY_BIND_ADDR_DEFAULT) != 0))