vishalmishra434 / rpms / openssh

Forked from rpms/openssh a month ago
Clone
Jan F 003cb0
diff -up openssh-5.8p1/entropy.c.randclean openssh-5.8p1/entropy.c
Jan F 003cb0
--- openssh-5.8p1/entropy.c.randclean	2011-01-13 11:05:29.000000000 +0100
Jan F 003cb0
+++ openssh-5.8p1/entropy.c	2011-02-14 00:26:31.000000000 +0100
Jan F. Chadima e39eb5
@@ -159,6 +159,9 @@ init_rng(void)
Jan F. Chadima e39eb5
 		fatal("OpenSSL version mismatch. Built against %lx, you "
Jan F 003cb0
 		    "have %lx", (u_long)OPENSSL_VERSION_NUMBER, SSLeay());
Jan F. Chadima 28355b
 
Jan F. Chadima 28355b
+	/* clean the PRNG status when exiting the program */
Jan F. Chadima 28355b
+	atexit(RAND_cleanup);
Jan F. Chadima 28355b
+
Jan F. Chadima e39eb5
 #ifndef OPENSSL_PRNG_ONLY
Jan F. Chadima e39eb5
 	original_uid = getuid();
Jan F. Chadima e39eb5
 	original_euid = geteuid();