summaryrefslogtreecommitdiff
path: root/src/or/routerparse.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/routerparse.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/routerparse.c')
-rw-r--r--src/or/routerparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index aecf6a2723..d5690c1101 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -2914,13 +2914,13 @@ routerstatus_parse_entry_from_string(memarea_t *area,
}
if ((tok = find_opt_by_keyword(tokens, K_V))) {
tor_assert(tok->n_args == 1);
- rs->version_known = 1;
if (!strcmpstart(tok->args[0], "Tor ") && !found_protocol_list) {
/* We only do version checks like this in the case where
* the version is a "Tor" version, and where there is no
* list of protocol versions that we should be looking at instead. */
rs->supports_extend2_cells =
tor_version_as_new_as(tok->args[0], "0.2.4.8-alpha");
+ rs->protocols_known = 1;
}
if (vote_rs) {
vote_rs->version = tor_strdup(tok->args[0]);