aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-01-31 14:12:14 -0500
committerNick Mathewson <nickm@torproject.org>2017-01-31 14:12:14 -0500
commita47c133c869db74024c9ab50801cd6b7553409e4 (patch)
treebf0f4dbbd545958a17fe86f8d84315a51477aae1 /src/or/dirserv.c
parent0d4d9b6d889de6dc85ca8870ada123aaf41b0053 (diff)
downloadtor-a47c133c869db74024c9ab50801cd6b7553409e4.tar.gz
tor-a47c133c869db74024c9ab50801cd6b7553409e4.zip
Do not clear is_bad_exit on sybil.
But do clear is_v2_dir. Fixes bug 21108 -- bugfix on d95e7c7d67134b9b964d49cf8c2bdbf805a in 0.2.0.13-alpha.
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index 34db06355b..cbed64657a 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -2239,7 +2239,7 @@ clear_status_flags_on_sybil(routerstatus_t *rs)
{
rs->is_authority = rs->is_exit = rs->is_stable = rs->is_fast =
rs->is_flagged_running = rs->is_named = rs->is_valid =
- rs->is_hs_dir = rs->is_possible_guard = rs->is_bad_exit = 0;
+ rs->is_hs_dir = rs->is_v2_dir = rs->is_possible_guard = 0;
/* FFFF we might want some mechanism to check later on if we
* missed zeroing any flags: it's easy to add a new flag but
* forget to add it to this clause. */