浏览代码

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.
Nick Mathewson 6 年之前
父节点
当前提交
d8c1c70d7a
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/test/bench.c

+ 2 - 0
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);