diff options
Diffstat (limited to 'src/or/protover.c')
-rw-r--r-- | src/or/protover.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/protover.c b/src/or/protover.c index d6d14b24a2..748c0c2f50 100644 --- a/src/or/protover.c +++ b/src/or/protover.c @@ -737,6 +737,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 ""; |