summaryrefslogtreecommitdiff
path: root/src/or/networkstatus.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-08-25 14:55:41 -0400
committerNick Mathewson <nickm@torproject.org>2016-09-26 10:56:51 -0700
commitf33b90324abe11724f59389e1aeaf8b3e021c3af (patch)
tree62090b34128900b39ca03672f33702cb6f4146b6 /src/or/networkstatus.c
parentd97a3855350aacd1ea776506624171952fab8ed8 (diff)
downloadtor-f33b90324abe11724f59389e1aeaf8b3e021c3af.tar.gz
tor-f33b90324abe11724f59389e1aeaf8b3e021c3af.zip
Include protocol versions in votes.
Diffstat (limited to 'src/or/networkstatus.c')
-rw-r--r--src/or/networkstatus.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index 6c92773a7a..0fc22c9aa3 100644
--- a/src/or/networkstatus.c
+++ b/src/or/networkstatus.c
@@ -230,6 +230,7 @@ vote_routerstatus_free(vote_routerstatus_t *rs)
if (!rs)
return;
tor_free(rs->version);
+ tor_free(rs->protocols);
tor_free(rs->status.exitsummary);
for (h = rs->microdesc; h; h = next) {
tor_free(h->microdesc_hash_line);
@@ -2095,7 +2096,7 @@ signed_descs_update_status_from_consensus_networkstatus(smartlist_t *descs)
char *
networkstatus_getinfo_helper_single(const routerstatus_t *rs)
{
- return routerstatus_format_entry(rs, NULL, NS_CONTROL_PORT, NULL);
+ return routerstatus_format_entry(rs, NULL, NULL, NS_CONTROL_PORT, NULL);
}
/** Alloc and return a string describing routerstatuses for the most