summaryrefslogtreecommitdiff
path: root/src/or/rendclient.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-12-11 19:12:45 +0000
committerNick Mathewson <nickm@torproject.org>2008-12-11 19:12:45 +0000
commit29f5a65a166cd06879ef55b7b5a38ae88c40482f (patch)
tree6ce6bde4a2ca017cb3fa8af85cf6752062694a16 /src/or/rendclient.c
parent4e69284e8926554acd01c3beab72e26609c89926 (diff)
downloadtor-29f5a65a166cd06879ef55b7b5a38ae88c40482f.tar.gz
tor-29f5a65a166cd06879ef55b7b5a38ae88c40482f.zip
Change directory_get_from_dirserver to take a set of flags to be passed to pick_(trusted_)dirserver. This lets us make its interface smarter, and makes code that calls it a little more readable.
svn:r17592
Diffstat (limited to 'src/or/rendclient.c')
-rw-r--r--src/or/rendclient.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/rendclient.c b/src/or/rendclient.c
index 3f0068cf74..7964185fce 100644
--- a/src/or/rendclient.c
+++ b/src/or/rendclient.c
@@ -448,7 +448,8 @@ rend_client_refetch_renddesc(const char *query)
} else {
/* not one already; initiate a dir rend desc lookup */
directory_get_from_dirserver(DIR_PURPOSE_FETCH_RENDDESC,
- ROUTER_PURPOSE_GENERAL, query, 1);
+ ROUTER_PURPOSE_GENERAL, query,
+ PDS_RETRY_IF_NO_SERVERS);
}
}