summaryrefslogtreecommitdiff
path: root/src/or/onion.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-04-25 21:32:04 +0000
committerRoger Dingledine <arma@torproject.org>2004-04-25 21:32:04 +0000
commit28f034e10a6b2834ad93b7922f9c136da6de2e38 (patch)
tree8ca37aaa6c3a6611d5d76a6b2482aa0d7dec0219 /src/or/onion.c
parentdb814b1276b49d96a4d83d9bc9eed2adfb415558 (diff)
downloadtor-28f034e10a6b2834ad93b7922f9c136da6de2e38.tar.gz
tor-28f034e10a6b2834ad93b7922f9c136da6de2e38.zip
now assume all routers support rendezvous cells
svn:r1699
Diffstat (limited to 'src/or/onion.c')
-rw-r--r--src/or/onion.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/or/onion.c b/src/or/onion.c
index 28afe68ba0..4eaf39fa89 100644
--- a/src/or/onion.c
+++ b/src/or/onion.c
@@ -348,16 +348,12 @@ static routerinfo_t *choose_good_exit_server_general(routerlist_t *dir)
static routerinfo_t *choose_good_exit_server(uint8_t purpose, routerlist_t *dir)
{
- smartlist_t *obsolete_routers;
routerinfo_t *r;
switch(purpose) {
case CIRCUIT_PURPOSE_C_GENERAL:
return choose_good_exit_server_general(dir);
case CIRCUIT_PURPOSE_C_ESTABLISH_REND:
- obsolete_routers = smartlist_create();
- router_add_nonrendezvous_to_list(obsolete_routers);
- r = router_choose_random_node(dir, options.RendNodes, options.RendExcludeNodes, obsolete_routers);
- smartlist_free(obsolete_routers);
+ r = router_choose_random_node(dir, options.RendNodes, options.RendExcludeNodes, NULL);
return r;
default:
log_fn(LOG_WARN,"unhandled purpose %d", purpose);