diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-01-16 13:29:11 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-01-16 13:29:11 -0500 |
commit | d8c1c70d7a391915960343f2f4e21052cdada335 (patch) | |
tree | a94757d6f7adc5545dd044278e83e5d1ad36bc85 /src/test/bench.c | |
parent | 455cc12b513a54b849d5eeea8ad7d0a3149eb776 (diff) | |
download | tor-d8c1c70d7a391915960343f2f4e21052cdada335.tar.gz tor-d8c1c70d7a391915960343f2f4e21052cdada335.zip |
Repair a crash bug in src/test/bench
This was caused because of the new KeyDirectory and CacheDirectory
options not being set. Bugfix on 0.3.3.0-alpha; not in any released
Tor.
Diffstat (limited to 'src/test/bench.c')
-rw-r--r-- | src/test/bench.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/bench.c b/src/test/bench.c index f30b609900..24ff8b255c 100644 --- a/src/test/bench.c +++ b/src/test/bench.c @@ -718,6 +718,8 @@ main(int argc, const char **argv) init_logging(1); options->command = CMD_RUN_UNITTESTS; options->DataDirectory = tor_strdup(""); + options->KeyDirectory = tor_strdup(""); + options->CacheDirectory = tor_strdup(""); options_init(options); if (set_options(options, &errmsg) < 0) { printf("Failed to set initial options: %s\n", errmsg); |