crypt() in glibc/eglibc 2.17 now fails if passed
a salt that violates specs. On Linux, crypt() also fails with DES/MD5 salts in FIPS140 mode. Rather than exit() on NULL returns we send them back to the caller for appropriate handling.
This commit is contained in:
1 parent
a6769c050b
commit
52a38d5509
10 files changed
+65
-12
No files matched your search
@@ -95,6 +95,7 @@ bool valid (const char *password, const struct passwd *ent)
|
||||
*/
|
||||
|
||||
if ( (NULL != ent->pw_name)
|
||||
&& (NULL != encrypted)
|
||||
&& (strcmp (encrypted, ent->pw_passwd) == 0)) {
|
||||
return true;
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user