openssh/openssh-5.8p1-randclean.patch

14 lines
529 B
Diff
Raw Normal View History

2011-02-14 14:32:49 +00:00
diff -up openssh-5.8p1/entropy.c.randclean openssh-5.8p1/entropy.c
--- openssh-5.8p1/entropy.c.randclean 2011-01-13 11:05:29.000000000 +0100
+++ openssh-5.8p1/entropy.c 2011-02-14 00:26:31.000000000 +0100
2010-01-21 09:00:42 +00:00
@@ -159,6 +159,9 @@ init_rng(void)
fatal("OpenSSL version mismatch. Built against %lx, you "
2011-02-14 14:32:49 +00:00
"have %lx", (u_long)OPENSSL_VERSION_NUMBER, SSLeay());
+ /* clean the PRNG status when exiting the program */
+ atexit(RAND_cleanup);
+
2010-01-21 09:00:42 +00:00
#ifndef OPENSSL_PRNG_ONLY
original_uid = getuid();
original_euid = geteuid();