aboutsummaryrefslogtreecommitdiff
path: root/src/feature/dirauth/dirvote.c
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2020-02-12 22:06:11 +1000
committerteor <teor@torproject.org>2020-02-12 22:06:11 +1000
commit64bb6e622dbce6448e29e4ff6140a1c6bb44c298 (patch)
tree3c0ca95948c10932c75b1a5df75217a85400b8fc /src/feature/dirauth/dirvote.c
parent78051c8808945f87e4fbd9e4bc8c4a19fb009ac7 (diff)
downloadtor-64bb6e622dbce6448e29e4ff6140a1c6bb44c298.tar.gz
tor-64bb6e622dbce6448e29e4ff6140a1c6bb44c298.zip
dirvote: Reorder required protocol lists
Use a consistent order, because the current order is going to trip someone up eventually. Preparation for 33285.
Diffstat (limited to 'src/feature/dirauth/dirvote.c')
-rw-r--r--src/feature/dirauth/dirvote.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/feature/dirauth/dirvote.c b/src/feature/dirauth/dirvote.c
index ce40ec6152..4e0e19dc91 100644
--- a/src/feature/dirauth/dirvote.c
+++ b/src/feature/dirauth/dirvote.c
@@ -4623,10 +4623,10 @@ dirserv_generate_networkstatus_vote_obj(crypto_pk_t *private_key,
v3_out->recommended_client_protocols =
tor_strdup(DIRVOTE_RECCOMEND_CLIENT_PROTO);
- v3_out->required_client_protocols =
- tor_strdup(DIRVOTE_REQUIRE_CLIENT_PROTO);
v3_out->required_relay_protocols =
tor_strdup(DIRVOTE_REQUIRE_RELAY_PROTO);
+ v3_out->required_client_protocols =
+ tor_strdup(DIRVOTE_REQUIRE_CLIENT_PROTO);
/* We are not allowed to vote to require anything we don't have. */
tor_assert(protover_all_supported(v3_out->required_relay_protocols, NULL));