From: Roger Dingledine Date: Sun, 23 Mar 2014 04:38:17 +0000 (-0400) Subject: Never run crypto_early_init() more than once X-Git-Tag: tor-0.2.5.4-alpha~102^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c08b47977ef93ddd3b43cede365a352cc87e16bd;p=thirdparty%2Ftor.git 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. --- 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();