summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>2016-07-14 14:08:23 +1000
committerNick Mathewson <nickm@torproject.org>2016-09-13 10:13:56 -0400
commit831cf6d1d8a01e0538a4f1eeadc99455237325fb (patch)
tree4bd912c7a76cb1c01aa895b47379ab9850b42b9b /src/or
parente5ad00330c7e4f63898a15ab6a4d833b732601a2 (diff)
downloadtor-831cf6d1d8a01e0538a4f1eeadc99455237325fb.tar.gz
tor-831cf6d1d8a01e0538a4f1eeadc99455237325fb.zip
Refactor crypto init to use existing options variable
Diffstat (limited to 'src/or')
-rw-r--r--src/or/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 76f9f38d3c..48c9f57fb0 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;
}