diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-05-22 08:32:07 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-05-22 08:32:07 -0400 |
commit | 5c52d3c2c05a42c9535789d335a51f09a7855d68 (patch) | |
tree | e79eacd172620e6d70044c9f0e547682243002de /src/or/dirserv.c | |
parent | d1340bd5ac905e650dfdad53aeba0361231def16 (diff) | |
parent | 6e5486b11ac113ab7cf42d167dd5555b5916ddbc (diff) | |
download | tor-5c52d3c2c05a42c9535789d335a51f09a7855d68.tar.gz tor-5c52d3c2c05a42c9535789d335a51f09a7855d68.zip |
Merge branch 'maint-0.2.9' into maint-0.3.0
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r-- | src/or/dirserv.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index f01668adcb..990242861c 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -383,6 +383,17 @@ dirserv_get_status_impl(const char *id_digest, const char *nickname, return FP_REJECT; } + /* Tor 0.2.9.x where x<5 suffers from bug #20499, where relays don't + * keep their consensus up to date so they make bad guards. + * The simple fix is to just drop them from the network. */ + if (platform && + tor_version_as_new_as(platform,"0.2.9.0-alpha") && + !tor_version_as_new_as(platform,"0.2.9.5-alpha")) { + if (msg) + *msg = "Tor version contains bug 20499. Please upgrade!"; + return FP_REJECT; + } + status_by_digest = digestmap_get(fingerprint_list->status_by_digest, id_digest); if (status_by_digest) |