]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Repair a crash bug in src/test/bench
authorNick Mathewson <nickm@torproject.org>
Tue, 16 Jan 2018 18:29:11 +0000 (13:29 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 16 Jan 2018 18:29:11 +0000 (13:29 -0500)
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.

src/test/bench.c

index f30b6099001104fbf1780a1ba92874c70a75a423..24ff8b255ca2b60e3a4982f8bb38a0125c5ef035 100644 (file)
@@ -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);