summaryrefslogtreecommitdiff
path: root/src/or/networkstatus.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-09-10 15:23:39 -0400
committerNick Mathewson <nickm@torproject.org>2012-12-06 11:23:43 -0500
commit5c51b3f1f0d4c394392aa6fce89bbe0960117771 (patch)
tree8c4c512f91e3d5e22ab246205f6030684a33b4d6 /src/or/networkstatus.c
parent404e3dd48149434a22c6b27bc253afd78ce5a9bf (diff)
downloadtor-5c51b3f1f0d4c394392aa6fce89bbe0960117771.tar.gz
tor-5c51b3f1f0d4c394392aa6fce89bbe0960117771.zip
Start refactoring trusted_dir_servers into trusted and fallback lists
We use trusted_dir_server_t for two pieces of functionality: a list of all directory authorities, and a list of initial places to look for a directory. With this patch we start to separate those two roles. There is as of now no actual way to be a fallback directory without being an authority.
Diffstat (limited to 'src/or/networkstatus.c')
-rw-r--r--src/or/networkstatus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index 63426e8e4d..ea70027262 100644
--- a/src/or/networkstatus.c
+++ b/src/or/networkstatus.c
@@ -2062,7 +2062,7 @@ routers_update_status_from_consensus_networkstatus(smartlist_t *routers,
/* We have a routerstatus for this router. */
const char *digest = router->cache_info.identity_digest;
- ds = router_get_trusteddirserver_by_digest(digest);
+ ds = router_get_fallback_dirserver_by_digest(digest);
/* Is it the same descriptor, or only the same identity? */
if (tor_memeq(router->cache_info.signed_descriptor_digest,