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

Fix check_expired_networkstatus_callback() if condition


The condition was always true meaning that we would reconsider updating our
directory information every 2 minutes.

If valid_until is 6am today, then now - 24h == 1pm yesterday which means that
"valid_until < (now - 24h)" is false. But at 6:01am tomorrow, "valid_until <
(now - 24h)" becomes true which is that point that we shouldn't trust the
consensus anymore.

Fixes #23091

Signed-off-by: David Goulet's avatarDavid Goulet <dgoulet@torproject.org>
parent c4c5077a
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