diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-03-15 10:15:59 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-03-21 13:24:09 -0400 |
commit | 48f8229504a00085676a737d9b519548ffc9d145 (patch) | |
tree | 964e9b717a9dcb084d3c0b602978ee706666ba7d /src/or/dirserv.h | |
parent | fa07c60c67d69ff25c4e64172e3a38b29a2e6143 (diff) | |
download | tor-48f8229504a00085676a737d9b519548ffc9d145.tar.gz tor-48f8229504a00085676a737d9b519548ffc9d145.zip |
After we strip out duplicate entries from 'routers', don't use 'rl'.
We've got to make sure that every single subsequent calculation in
dirserv_generate_networkstatus_vote_obj() are based on the list of
routerinfo_t *after* we've removed possible duplicates, not before.
Fortunately, none of the functions that were taking a routerlist_t
as an argument were actually using any fields other than this list
of routers.
Resolves issue 18318.DG3.
Diffstat (limited to 'src/or/dirserv.h')
-rw-r--r-- | src/or/dirserv.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/dirserv.h b/src/or/dirserv.h index d07339bc12..b16a67c081 100644 --- a/src/or/dirserv.h +++ b/src/or/dirserv.h @@ -50,7 +50,7 @@ int list_server_status_v1(smartlist_t *routers, char **router_status_out, int dirserv_dump_directory_to_string(char **dir_out, crypto_pk_t *private_key); char *dirserv_get_flag_thresholds_line(void); -void dirserv_compute_bridge_flag_thresholds(routerlist_t *rl); +void dirserv_compute_bridge_flag_thresholds(const smartlist_t *routers); int directory_fetches_from_authorities(const or_options_t *options); int directory_fetches_dir_info_early(const or_options_t *options); |