mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
Merge remote-tracking branch 'linus/empty_desc_stats'
This commit is contained in:
commit
545cb5f34e
4
changes/bug5508
Normal file
4
changes/bug5508
Normal file
@ -0,0 +1,4 @@
|
||||
o Minor bugfixes:
|
||||
- Fix a bug where a bridge authority crashes (on a failed assert)
|
||||
if it has seen no directory requests when it's time to write
|
||||
statistics to disk.
|
@ -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