backport r10157

svn:r10178
This commit is contained in:
Roger Dingledine 2007-05-13 00:53:13 +00:00
parent f597b73dc0
commit dc76c31c79
2 changed files with 5 additions and 2 deletions

View File

@ -19,6 +19,9 @@ Changes in version 0.1.2.14 - 2007-0?-??
o Minor bugfixes:
- Actually set the purpose correctly for descriptors inserted with
purpose=controller.
- When we have k non-v2 authorities in our DirServer config,
we ignored as many as k v2 authorities while updating our
network-statuses.
o Minor features:
- When routers publish SVN revisions in their router descriptors,

View File

@ -2909,14 +2909,14 @@ update_networkstatus_client_downloads(time_t now)
/* If no networkstatus was found, choose a dirserver at random as "most
* recent". */
if (most_recent_idx<0)
most_recent_idx = crypto_rand_int(n_dirservers);
most_recent_idx = crypto_rand_int(smartlist_len(trusted_dir_servers));
if (fetch_latest) {
int i;
int n_failed = 0;
for (i = most_recent_idx + 1; 1; ++i) {
trusted_dir_server_t *ds;
if (i >= n_dirservers)
if (i >= smartlist_len(trusted_dir_servers))
i = 0;
ds = smartlist_get(trusted_dir_servers, i);
if (! ds->is_v2_authority)