summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2013-06-12 21:16:31 +0100
committerDr. Stephen Henson <steve@openssl.org>2013-08-18 19:06:51 +0100
commitfcb2bcfe656af84fc1e27429b2d6fe52cc4ddf58 (patch)
treed74e5ba5db5762e1b895b6d6436bf74e83e98d7c
parenteeb15452a053c14305210522be0e7313cb763bac (diff)
downloadopenssl-new-fcb2bcfe656af84fc1e27429b2d6fe52cc4ddf58.tar.gz
Typo: don't call RAND_cleanup during app startup.
(cherry picked from commit 90e7f983b573c3f3c722a02db4491a1b1cd87e8c)
-rw-r--r--apps/apps.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/apps.h b/apps/apps.h
index 0a9d90bcb5..3f15f1034a 100644
--- a/apps/apps.h
+++ b/apps/apps.h
@@ -183,7 +183,6 @@ extern BIO *bio_err;
# define apps_startup() \
do { do_pipe_sig(); CRYPTO_malloc_init(); \
ERR_load_crypto_strings(); OpenSSL_add_all_algorithms(); \
- RAND_cleanup(); \
ENGINE_load_builtin_engines(); setup_ui_method(); } while(0)
# define apps_shutdown() \
do { CONF_modules_unload(1); destroy_ui_method(); \
@@ -200,6 +199,7 @@ extern BIO *bio_err;
do { CONF_modules_unload(1); destroy_ui_method(); \
OBJ_cleanup(); EVP_cleanup(); \
CRYPTO_cleanup_all_ex_data(); ERR_remove_thread_state(NULL); \
+ RAND_cleanup(); \
ERR_free_strings(); zlib_cleanup(); } while(0)
# endif
#endif