]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Never run crypto_early_init() more than once
authorRoger Dingledine <arma@torproject.org>
Sun, 23 Mar 2014 04:38:17 +0000 (00:38 -0400)
committerRoger Dingledine <arma@torproject.org>
Sun, 23 Mar 2014 04:38:17 +0000 (00:38 -0400)
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

index 12a695b9cbcb7408d64787e5c7455dcefa6974b7..f357934ac9b32510f15a38e7da009b1815f5961d 100644 (file)
@@ -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();