[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Repair a crash bug in src/test/bench



commit d8c1c70d7a391915960343f2f4e21052cdada335
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Tue Jan 16 13:29:11 2018 -0500

    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.
---
 src/test/bench.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/test/bench.c b/src/test/bench.c
index f30b60990..24ff8b255 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);

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits