summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-11-30 12:07:26 -0500
committerNick Mathewson <nickm@torproject.org>2017-11-30 12:07:26 -0500
commit52d7af631cb1075289ba519d0c3b89e0b5816f5e (patch)
tree20c8c9c238050dc88f88ccad01615c0d251cca73 /src/or
parent072e194a15e9aa0e75c6723763a69476f4f31b93 (diff)
parent2c0487ecfb410d1361b114e60d8e9ffd2ed092ec (diff)
downloadtor-52d7af631cb1075289ba519d0c3b89e0b5816f5e.tar.gz
tor-52d7af631cb1075289ba519d0c3b89e0b5816f5e.zip
Merge branch 'trove-2017-010_029' into maint-0.2.9
Diffstat (limited to 'src/or')
-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 0a4d4fb8fd..98957cabdf 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 "";