aboutsummaryrefslogtreecommitdiff
path: root/src/or/protover.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-11-30 12:07:59 -0500
committerNick Mathewson <nickm@torproject.org>2017-11-30 12:07:59 -0500
commit5fc0587c040339357bc3fc37f1b5474f1c3d1a33 (patch)
treea8b8d67d703f07590495e659957573f012ac5ec8 /src/or/protover.c
parentd459c08b7d5cb1766bda5443ea2750bca160212d (diff)
parent7e2b012b46a4ade2818e47be15d76255cf6f121e (diff)
downloadtor-5fc0587c040339357bc3fc37f1b5474f1c3d1a33.tar.gz
tor-5fc0587c040339357bc3fc37f1b5474f1c3d1a33.zip
Merge branch 'maint-0.2.9' into maint-0.3.0
Diffstat (limited to 'src/or/protover.c')
-rw-r--r--src/or/protover.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/protover.c b/src/or/protover.c
index 88d549ab35..c76f028699 100644
--- a/src/or/protover.c
+++ b/src/or/protover.c
@@ -694,6 +694,11 @@ protocol_list_contains(const smartlist_t *protos,
const char *
protover_compute_for_old_tor(const char *version)
{
+ if (version == NULL) {
+ /* No known version; guess the oldest series that is still supported. */
+ version = "0.2.5.15";
+ }
+
if (tor_version_as_new_as(version,
FIRST_TOR_VERSION_TO_ADVERTISE_PROTOCOLS)) {
return "";