diff options
author | David Goulet <dgoulet@torproject.org> | 2016-11-28 10:58:03 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-12-02 12:09:08 -0500 |
commit | 907cd8a0cfb6da08450902ebb2f21db3cd65e7f7 (patch) | |
tree | e65ba9067d929be27c80031c8ffe32da062a303b /src/or/protover.c | |
parent | 8b93cbc16d2ec0b64ce9d48482a2cf2164ed1199 (diff) | |
download | tor-907cd8a0cfb6da08450902ebb2f21db3cd65e7f7.tar.gz tor-907cd8a0cfb6da08450902ebb2f21db3cd65e7f7.zip |
protover: Fix old tor hardcoded version check
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>
Diffstat (limited to 'src/or/protover.c')
-rw-r--r-- | src/or/protover.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/protover.c b/src/or/protover.c index 4d7e9f64ca..0a4d4fb8fd 100644 --- a/src/or/protover.c +++ b/src/or/protover.c @@ -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 " |