Skip to content
Snippets Groups Projects
Commit e67f4441 authored by David Goulet's avatar David Goulet :panda_face:
Browse files

Add a safe guard to avoid using a zeroed voting schedule


dirvote_get_next_valid_after_time() is the only public function that uses the
voting schedule outside of the dirvote subsystem so if it is zeroed,
recalculate its timing if we can that is if a consensus exists.

Part of #24161

Signed-off-by: David Goulet's avatarDavid Goulet <dgoulet@torproject.org>
parent 8171d9f5
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment