]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
protover: Fix old tor hardcoded version check
authorDavid Goulet <dgoulet@torproject.org>
Mon, 28 Nov 2016 15:58:03 +0000 (10:58 -0500)
committerNick Mathewson <nickm@torproject.org>
Fri, 2 Dec 2016 17:09:08 +0000 (12:09 -0500)
When computing old Tor protocol line version in protover, we were looking at
0.2.7.5 twice instead of the specific case for 0.2.9.1-alpha.

Fixes #20810

Signed-off-by: David Goulet <dgoulet@torproject.org>
changes/bug20810 [new file with mode: 0644]
src/or/protover.c

diff --git a/changes/bug20810 b/changes/bug20810
new file mode 100644 (file)
index 0000000..5420a73
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor bugfixes (relay)
+    - When computing old Tor protocol line version in protover, we were
+      looking at 0.2.7.5 twice instead of a specific case for 0.2.9.1-alpha.
+      Bugfix on tor-0.2.9.4-alpha.
index 4d7e9f64ca1980b0303e2ca3a127818471b5ab1f..0a4d4fb8fd0a2b0ac64f96e2a50555e8932d19f0 100644 (file)
@@ -697,7 +697,7 @@ protover_compute_for_old_tor(const char *version)
   if (tor_version_as_new_as(version,
                             FIRST_TOR_VERSION_TO_ADVERTISE_PROTOCOLS)) {
     return "";
-  } else if (tor_version_as_new_as(version, "0.2.7.5")) {
+  } else if (tor_version_as_new_as(version, "0.2.9.1-alpha")) {
     /* 0.2.9.1-alpha HSRend=2 */
     return "Cons=1-2 Desc=1-2 DirCache=1 HSDir=1 HSIntro=3 HSRend=1-2 "
       "Link=1-4 LinkAuth=1 "