mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 22:58:50 +01:00
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.
This commit is contained in:
parent
455cc12b51
commit
d8c1c70d7a
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue