mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Don't try to generate stats from an empty served_descs.
This commit is contained in:
parent
77bc1b803e
commit
1b6f6bfda5
@ -2657,6 +2657,8 @@ rep_hist_format_desc_stats(time_t now)
|
||||
return NULL;
|
||||
|
||||
size = digestmap_size(served_descs);
|
||||
if (size == 0)
|
||||
return NULL;
|
||||
vals = tor_malloc(size * sizeof(int));
|
||||
|
||||
for (iter = digestmap_iter_init(served_descs); !digestmap_iter_done(iter);
|
||||
|
Loading…
Reference in New Issue
Block a user