aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2019-05-23 09:30:36 -0400
committerDavid Goulet <dgoulet@torproject.org>2019-05-23 09:30:36 -0400
commit327bb0e2ca72dd57bd1ceb9c05dd90dfffcc92a5 (patch)
tree7e5ada8dc7b614c679d019ab04f39ec2822b2770 /src
parentebe39dcb9225ffe43c6b6d2fe49d4b99d155ff33 (diff)
parent821dd54586bffd95bdd8c9d333b1f80ef55d3742 (diff)
downloadtor-327bb0e2ca72dd57bd1ceb9c05dd90dfffcc92a5.tar.gz
tor-327bb0e2ca72dd57bd1ceb9c05dd90dfffcc92a5.zip
Merge branch 'tor-github/pr/988'
Diffstat (limited to 'src')
-rw-r--r--src/feature/dirauth/dirvote.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/feature/dirauth/dirvote.c b/src/feature/dirauth/dirvote.c
index b841ab240f..cdbdf5a216 100644
--- a/src/feature/dirauth/dirvote.c
+++ b/src/feature/dirauth/dirvote.c
@@ -348,11 +348,11 @@ format_networkstatus_vote(crypto_pk_t *private_signing_key,
"known-flags %s\n"
"flag-thresholds %s\n"
"params %s\n"
+ "%s" /* bandwidth file headers */
+ "%s" /* bandwidth file digest */
"dir-source %s %s %s %s %d %d\n"
"contact %s\n"
"%s" /* shared randomness information */
- "%s" /* bandwidth file headers */
- "%s" /* bandwidth file */
,
v3_ns->type == NS_TYPE_VOTE ? "vote" : "opinion",
methods,
@@ -365,14 +365,13 @@ format_networkstatus_vote(crypto_pk_t *private_signing_key,
flags,
flag_thresholds,
params,
+ bw_headers_line ? bw_headers_line : "",
+ bw_file_digest ? bw_file_digest: "",
voter->nickname, fingerprint, voter->address,
fmt_addr32(addr), voter->dir_port, voter->or_port,
voter->contact,
shared_random_vote_str ?
- shared_random_vote_str : "",
- bw_headers_line ?
- bw_headers_line : "",
- bw_file_digest ? bw_file_digest: "");
+ shared_random_vote_str : "");
tor_free(params);
tor_free(flags);