[tor-commits] [tor/master] Refactor crypto init to use existing options variable

nickm at torproject.org nickm at torproject.org
Tue Sep 13 14:42:00 UTC 2016


commit 831cf6d1d8a01e0538a4f1eeadc99455237325fb
Author: teor (Tim Wilson-Brown) <teor2345 at gmail.com>
Date:   Thu Jul 14 14:08:23 2016 +1000

    Refactor crypto init to use existing options variable
---
 src/or/main.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/or/main.c b/src/or/main.c
index 76f9f38..48c9f57 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -2858,9 +2858,9 @@ tor_init(int argc, char *argv[])
              "and you probably shouldn't.");
 #endif
 
-  if (crypto_global_init(get_options()->HardwareAccel,
-                         get_options()->AccelName,
-                         get_options()->AccelDir)) {
+  if (crypto_global_init(options->HardwareAccel,
+                         options->AccelName,
+                         options->AccelDir)) {
     log_err(LD_BUG, "Unable to initialize OpenSSL. Exiting.");
     return -1;
   }





More information about the tor-commits mailing list