mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Assert that rep_hist_format_desc_stats() returns !NULL.
The guard against this is the test for start_of_served_descs_stats_interval != 0 done earlier.
This commit is contained in:
parent
57359b5336
commit
e3716598fc
@ -2705,6 +2705,7 @@ rep_hist_desc_stats_write(time_t now)
|
||||
return start_of_served_descs_stats_interval + WRITE_STATS_INTERVAL;
|
||||
|
||||
str = rep_hist_format_desc_stats(now);
|
||||
tor_assert(str != NULL);
|
||||
|
||||
statsdir = get_datadir_fname("stats");
|
||||
if (check_private_dir(statsdir, CPD_CREATE, get_options()->User) < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user