diff options
Diffstat (limited to 'crypto/openssh/entropy.c')
-rw-r--r-- | crypto/openssh/entropy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/openssh/entropy.c b/crypto/openssh/entropy.c index 8b70539..a650351 100644 --- a/crypto/openssh/entropy.c +++ b/crypto/openssh/entropy.c @@ -100,6 +100,7 @@ seed_rng(void) close(p[0]); close(p[1]); close(devnull); + closefrom(STDERR_FILENO + 1); if (original_uid != original_euid && ( seteuid(getuid()) == -1 || @@ -157,7 +158,7 @@ init_rng(void) */ if ((SSLeay() ^ OPENSSL_VERSION_NUMBER) & ~0xff0L) fatal("OpenSSL version mismatch. Built against %lx, you " - "have %lx", OPENSSL_VERSION_NUMBER, SSLeay()); + "have %lx", (u_long)OPENSSL_VERSION_NUMBER, SSLeay()); #ifndef OPENSSL_PRNG_ONLY original_uid = getuid(); |