[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Refactor crypto init to use existing options variable
commit 831cf6d1d8a01e0538a4f1eeadc99455237325fb
Author: teor (Tim Wilson-Brown) <teor2345@xxxxxxxxx>
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;
}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits