diff options
author | Roger Dingledine <arma@torproject.org> | 2014-03-23 00:38:17 -0400 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2014-03-23 00:38:17 -0400 |
commit | c08b47977ef93ddd3b43cede365a352cc87e16bd (patch) | |
tree | d38aeb7aabbafe1dc5aec8b1f57599f78c206f35 /src/common/crypto.c | |
parent | f560eeadc38f3146f17c55b0d00799b3ee7d5acf (diff) | |
download | tor-c08b47977ef93ddd3b43cede365a352cc87e16bd.tar.gz tor-c08b47977ef93ddd3b43cede365a352cc87e16bd.zip |
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.
Diffstat (limited to 'src/common/crypto.c')
-rw-r--r-- | src/common/crypto.c | 3 |
1 files changed, 3 insertions, 0 deletions
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(); |