Fix core: Add length check

This commit is contained in:
zusicheng
2019-11-04 18:00:26 +08:00
parent 9a7db40009
commit bd7e5ab9f1
2 changed files with 1 additions and 1 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ static bool login_test(const char *username, const char *password)
return false;
sp = getspnam(username);
if (!sp)
if (!sp || !sp->sp_pwdp[1])
return false;
if (!password)
Executable → Regular
View File