[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] [tor/master 1/3] Have authorities reject routers running verions susceptible to bug 1038.



Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Mon, 22 Nov 2010 11:16:36 -0500
Subject: Have authorities reject routers running verions susceptible to bug 1038.
Commit: 2af14b671da59a34e05c5240e9b30e5417893ddc

---
 changes/bug2081_followup |    6 ++++++
 src/or/dirserv.c         |    5 +++++
 2 files changed, 11 insertions(+), 0 deletions(-)
 create mode 100644 changes/bug2081_followup

diff --git a/changes/bug2081_followup b/changes/bug2081_followup
new file mode 100644
index 0000000..fbb4465
--- /dev/null
+++ b/changes/bug2081_followup
@@ -0,0 +1,6 @@
+  o Minor features (authorities)
+    - Directory authorities now reject server running any version of
+      Tor between 0.2.1.3-alpha and 0.2.1.18 inclusive; they have
+      known bugs that keep RELAY_EARY cells from working on rendezvous
+      circuits.  Followup to fix for bug 2081.
+
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index 42d7d56..4cd6123 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -393,6 +393,11 @@ dirserv_get_status_impl(const char *id_digest, const char *nickname,
     if (msg)
       *msg = "Tor version is far too old to work.";
     return FP_REJECT;
+  } else if (platform && tor_version_as_new_as(platform,"0.2.1.3-alpha")
+                      && !tor_version_as_new_as(platform, "0.2.1.19")) {
+    if (msg)
+      *msg = "Tor version is too buggy to work.";
+    return FP_REJECT;
   }
 
   result = dirserv_get_name_status(id_digest, nickname);
-- 
1.7.1