Skip to content
Snippets Groups Projects
Commit f89de0a7 authored by Roger Dingledine's avatar Roger Dingledine Committed by Nick Mathewson
Browse files

Remove over-two-months-old entry guards even while running.

Previously, we only did this check at startup, which could lead to
us holding a guard indefinitely, and give weird results.  Fixes bug
5380; bugfix on 0.2.1.14-rc.

(Patch by Roger; changes file and commit message by Nick)
parent a6cb07bd
No related branches found
No related tags found
No related merge requests found
o Minor bugfixes:
- Check our entry guards for having been picked too long ago when
we get a new consensus. (Previously, we only did this check at
startup, which could lead to us holding a guard indefinitely,
and give weird results.) Fixes bug 5380; bugfix on 0.2.1.14-rc.
......@@ -3868,6 +3868,8 @@ entry_guards_compute_status(const or_options_t *options, time_t now)
if (remove_dead_entry_guards(now))
changed = 1;
if (remove_obsolete_entry_guards(now))
changed = 1;
if (changed) {
SMARTLIST_FOREACH_BEGIN(entry_guards, entry_guard_t *, entry) {
......
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