[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #13389 [DocTor]: If no authorities votes on a BadExit flag, doctor crashes
#13389: If no authorities votes on a BadExit flag, doctor crashes
------------------------+--------------------
Reporter: tom | Owner: atagar
Type: defect | Status: new
Priority: normal | Milestone:
Component: DocTor | Version:
Resolution: | Keywords:
Actual Points: | Parent ID:
Points: |
------------------------+--------------------
Comment (by tom):
Fixing this may be as simple as
{{{
@@ -609,6 +646,8 @@ def bad_exits_in_sync(latest_consensus, consensuses,
votes):
bad_exits[authority] = set(flagged)
voting_authorities = set(bad_exits.keys())
+ if not voting_authorities:
+ return
agreed_bad_exits = set.intersection(*bad_exits.values())
disagreed_bad_exits =
set.union(*bad_exits.values()).difference(agreed_bad_exits)
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/13389#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs