]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Do not clear is_bad_exit on sybil.
authorNick Mathewson <nickm@torproject.org>
Tue, 31 Jan 2017 19:12:14 +0000 (14:12 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 31 Jan 2017 19:12:14 +0000 (14:12 -0500)
But do clear is_v2_dir.

Fixes bug 21108 -- bugfix on d95e7c7d67134b9b964d49cf8c2bdbf805a in
0.2.0.13-alpha.

changes/bug21108_029 [new file with mode: 0644]
src/or/dirserv.c

diff --git a/changes/bug21108_029 b/changes/bug21108_029
new file mode 100644 (file)
index 0000000..3a3f004
--- /dev/null
@@ -0,0 +1,6 @@
+  o Major bugfixes (directory authority):
+    - During voting, when marking a node as a probable sybil, do not
+      clear its BadExit flag: sybils can still be bad in other ways
+      too. (We still clear the other flags.) Fixes bug 21108; bugfix
+      on 0.2.0.13-alpha.
+
index 34db06355b12b393e22ef9b7bb2936c99bafb169..cbed64657a2a4e4bff784882a851989996d10787 100644 (file)
@@ -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. */