mirror of
https://github.com/rfc1036/whois.git
synced 2026-05-03 06:51:09 +00:00
mkpasswd: exit if crypt_gensalt on Solaris fails
This commit is contained in:
parent
78d2e38a64
commit
09d4a0fe88
@ -279,8 +279,10 @@ int main(int argc, char *argv[])
|
||||
} else {
|
||||
#ifdef HAVE_SOLARIS_CRYPT_GENSALT
|
||||
salt = crypt_gensalt(salt_prefix, NULL);
|
||||
if (!salt)
|
||||
if (!salt) {
|
||||
perror("crypt_gensalt");
|
||||
exit(2);
|
||||
}
|
||||
#elif defined HAVE_LINUX_CRYPT_GENSALT
|
||||
void *entropy = get_random_bytes(64);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user