From c08b47977ef93ddd3b43cede365a352cc87e16bd Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Sun, 23 Mar 2014 00:38:17 -0400 Subject: [PATCH] Never run crypto_early_init() more than once Previously we had set up all the infrastructure to avoid calling it after the first time, but didn't actually use it. --- src/common/crypto.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/crypto.c b/src/common/crypto.c index 12a695b9cb..f357934ac9 100644 --- a/src/common/crypto.c +++ b/src/common/crypto.c @@ -282,6 +282,9 @@ int crypto_early_init(void) { if (!crypto_early_initialized_) { + + crypto_early_initialized_ = 1; + ERR_load_crypto_strings(); OpenSSL_add_all_algorithms(); -- 2.11.4.GIT