summaryrefslogtreecommitdiff
path: root/src/or/routerlist.c
diff options
context:
space:
mode:
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>2016-05-11 13:06:13 -0400
committerteor (Tim Wilson-Brown) <teor2345@gmail.com>2016-05-11 13:06:13 -0400
commit2cbad2aac76d911cce7cee95e91aebc1b1fcb509 (patch)
treecb933e1c74d8f8e6fe33ad71084cd865a154aaec /src/or/routerlist.c
parent28e1aa111803bc3548e00503ab56de5f3d41c7fc (diff)
downloadtor-2cbad2aac76d911cce7cee95e91aebc1b1fcb509.tar.gz
tor-2cbad2aac76d911cce7cee95e91aebc1b1fcb509.zip
Revert "Switch between fallback and authority when auth cert fetch fails"
This reverts commit 92d7ee08b8c51b4b29f68c6d00ca4aa91ea5a66b.
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r--src/or/routerlist.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 31693437e1..85e9e7d834 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -912,14 +912,11 @@ authority_certs_fetch_missing(networkstatus_t *status, time_t now)
} SMARTLIST_FOREACH_END(d);
if (smartlist_len(fps) > 1) {
- static int want_auth = 0;
resource = smartlist_join_strings(fps, "", 0, NULL);
+ /* XXX - do we want certs from authorities or mirrors? - teor */
directory_get_from_dirserver(DIR_PURPOSE_FETCH_CERTIFICATE, 0,
resource, PDS_RETRY_IF_NO_SERVERS,
- want_auth ? DL_WANT_AUTHORITY
- : DL_WANT_ANY_DIRSERVER);
- /* on failure, swap between using fallbacks and authorities */
- want_auth = !want_auth;
+ DL_WANT_ANY_DIRSERVER);
tor_free(resource);
}
/* else we didn't add any: they were all pending */
@@ -961,14 +958,11 @@ authority_certs_fetch_missing(networkstatus_t *status, time_t now)
} SMARTLIST_FOREACH_END(d);
if (smartlist_len(fp_pairs) > 1) {
- static int want_auth = 0;
resource = smartlist_join_strings(fp_pairs, "", 0, NULL);
+ /* XXX - do we want certs from authorities or mirrors? - teor */
directory_get_from_dirserver(DIR_PURPOSE_FETCH_CERTIFICATE, 0,
resource, PDS_RETRY_IF_NO_SERVERS,
- want_auth ? DL_WANT_AUTHORITY
- : DL_WANT_ANY_DIRSERVER);
- /* on failure, swap between using fallbacks and authorities */
- want_auth = !want_auth;
+ DL_WANT_ANY_DIRSERVER);
tor_free(resource);
}
/* else they were all pending */