[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Never run crypto_early_init() more than once
commit c08b47977ef93ddd3b43cede365a352cc87e16bd
Author: Roger Dingledine <arma@xxxxxxxxxxxxxx>
Date: Sun Mar 23 00:38:17 2014 -0400
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 12a695b..f357934 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();
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits