New upstream version 4.17.0
This commit is contained in:
+3
-3
@@ -42,8 +42,8 @@ bool valid (const char *password, const struct passwd *ent)
|
||||
* routine is meant to waste CPU time.
|
||||
*/
|
||||
|
||||
if ((NULL != ent->pw_name) && ('\0' == ent->pw_passwd[0])) {
|
||||
if ('\0' == password[0]) {
|
||||
if ((NULL != ent->pw_name) && streq(ent->pw_passwd, "")) {
|
||||
if (streq(password, "")) {
|
||||
return true; /* user entered nothing */
|
||||
} else {
|
||||
return false; /* user entered something! */
|
||||
@@ -54,7 +54,7 @@ bool valid (const char *password, const struct passwd *ent)
|
||||
* If there is no entry then we need a salt to use.
|
||||
*/
|
||||
|
||||
if ((NULL == ent->pw_name) || ('\0' == ent->pw_passwd[0])) {
|
||||
if ((NULL == ent->pw_name) || streq(ent->pw_passwd, "")) {
|
||||
salt = "xx";
|
||||
} else {
|
||||
salt = ent->pw_passwd;
|
||||
|
||||
Reference in New Issue
Block a user