summaryrefslogtreecommitdiff
path: root/src/or/routerlist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-09-22 10:21:13 -0400
committerNick Mathewson <nickm@torproject.org>2016-09-26 10:56:53 -0700
commit1ab641a70e1f2cc2548abfd03e62e3f8b04825d2 (patch)
tree2a0f5cdce457b13001bf9369ae26e284185b8d94 /src/or/routerlist.c
parentf3382bd7223a3e5c0e6f1c32dc7d9e8a2d28fb36 (diff)
downloadtor-1ab641a70e1f2cc2548abfd03e62e3f8b04825d2.tar.gz
tor-1ab641a70e1f2cc2548abfd03e62e3f8b04825d2.zip
Remove version_known, and subtly change the meaning of protocols_known
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r--src/or/routerlist.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 0a03f13a56..0e637f4833 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -5526,7 +5526,8 @@ routerinfo_has_curve25519_onion_key(const routerinfo_t *ri)
}
/* Is rs running a tor version known to support ntor?
- * If allow_unknown_versions is true, return true if the version is unknown.
+ * If allow_unknown_versions is true, return true if we can't tell
+ * (from a versions line or a protocols line) whether it supports ntor.
* Otherwise, return false if the version is unknown. */
int
routerstatus_version_supports_ntor(const routerstatus_t *rs,
@@ -5536,7 +5537,7 @@ routerstatus_version_supports_ntor(const routerstatus_t *rs,
return allow_unknown_versions;
}
- if (!rs->version_known && !rs->protocols_known) {
+ if (!rs->protocols_known) {
return allow_unknown_versions;
}