mirror of
https://github.com/zhaojh329/rtty.git
synced 2026-02-27 09:53:17 +08:00
Fix core: Add length check
This commit is contained in:
+1
-1
@@ -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
Reference in New Issue
Block a user