diff options
author | Roger Dingledine <arma@torproject.org> | 2016-05-11 19:04:13 -0400 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2016-05-11 19:04:13 -0400 |
commit | 5a83122961391d4309f46062ff95b121f77bc6d8 (patch) | |
tree | 1c0dbc0ee8f9823c16b5503e9b5d750fe4009d86 /src/or/dirvote.c | |
parent | 9e44273a4a22803eff900f6df10f13c7548bdb0d (diff) | |
download | tor-5a83122961391d4309f46062ff95b121f77bc6d8.tar.gz tor-5a83122961391d4309f46062ff95b121f77bc6d8.zip |
Authorities now sort the "package" lines in their votes
(They are already sorted in the consensus documents)
Fixes bug 18840; bugfix on 0.2.6.3-alpha.
Diffstat (limited to 'src/or/dirvote.c')
-rw-r--r-- | src/or/dirvote.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/dirvote.c b/src/or/dirvote.c index 9854af7d7f..6725a8cacf 100644 --- a/src/or/dirvote.c +++ b/src/or/dirvote.c @@ -106,6 +106,7 @@ format_networkstatus_vote(crypto_pk_t *private_signing_key, SMARTLIST_FOREACH(v3_ns->package_lines, const char *, p, if (validate_recommended_package_line(p)) smartlist_add_asprintf(tmp, "package %s\n", p)); + smartlist_sort_strings(tmp); packages = smartlist_join_strings(tmp, "", 0, NULL); SMARTLIST_FOREACH(tmp, char *, cp, tor_free(cp)); smartlist_free(tmp); |