diff options
author | David Goulet <dgoulet@torproject.org> | 2024-08-05 15:26:38 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2024-08-05 15:26:38 -0400 |
commit | 17a70ab7c53b31a51ce615f7ad280c7df32e8701 (patch) | |
tree | d5ff46db1be1a0e615a82414bc3400e4b309e9b9 /src | |
parent | 12dc46c9cafcce7d27d245e005ff56ed55958310 (diff) | |
parent | 93df26b11a67423e05c200cd93cba6398b9f2a49 (diff) | |
download | tor-17a70ab7c53b31a51ce615f7ad280c7df32e8701.tar.gz tor-17a70ab7c53b31a51ce615f7ad280c7df32e8701.zip |
Merge branch 'maint-0.4.8'
Diffstat (limited to 'src')
-rw-r--r-- | src/feature/dirauth/dirvote.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/feature/dirauth/dirvote.c b/src/feature/dirauth/dirvote.c index 1386d75e0f..42c0802433 100644 --- a/src/feature/dirauth/dirvote.c +++ b/src/feature/dirauth/dirvote.c @@ -3490,8 +3490,10 @@ dirvote_compute_consensuses(void) { char *filename; tor_asprintf(&filename, "my-consensus-%s", flavor_name); - write_str_to_file(get_datadir_fname(filename), consensus_body, 0); + char *fpath = get_datadir_fname(filename); + write_str_to_file(fpath, consensus_body, 0); tor_free(filename); + tor_free(fpath); } consensus_body = NULL; |