summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--commands/login.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/login.c b/commands/login.c
index 210eb203ac..bf5085c854 100644
--- a/commands/login.c
+++ b/commands/login.c
@@ -71,7 +71,7 @@ static int do_login(int argc, char *argv[])
run_command(timeout_cmd);
}
- if (check_passwd(passwd, passwd_len))
+ if (check_passwd(passwd, passwd_len) == 1)
return 0;
} while(1);