passwd also use crypt_make_salt().

This commit is contained in:
nekral-guest
2007-11-20 09:51:36 +00:00
parent 0b695f5a76
commit 90de228897
2 changed files with 3 additions and 2 deletions

View File

@ -309,7 +309,7 @@ static int new_password (const struct passwd *pw)
/*
* Encrypt the password, then wipe the cleartext password.
*/
cp = pw_encrypt (pass, crypt_make_salt ());
cp = pw_encrypt (pass, crypt_make_salt (NULL, NULL));
memzero (pass, sizeof pass);
#ifdef HAVE_LIBCRACK_HIST