aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorKarsten Loesing <karsten.loesing@gmx.net>2008-08-04 22:42:27 +0000
committerKarsten Loesing <karsten.loesing@gmx.net>2008-08-04 22:42:27 +0000
commitff9c3c006f717c7ae1135416e100078b793e664c (patch)
treee6c670438178a241f753da50567cd1e224c163b7 /src/or
parent814394f32ba29ea451c2cc461be824bed898187d (diff)
downloadtor-ff9c3c006f717c7ae1135416e100078b793e664c.tar
tor-ff9c3c006f717c7ae1135416e100078b793e664c.tar.gz
Remove dead code that was left from marking HiddenService(Exclude)Nodes obsolete in task 754.
svn:r16401
Diffstat (limited to 'src/or')
-rw-r--r--src/or/rendservice.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c
index c745a0eb4..61736f5e0 100644
--- a/src/or/rendservice.c
+++ b/src/or/rendservice.c
@@ -1199,12 +1199,11 @@ rend_services_introduce(void)
rend_service_t *service;
rend_intro_point_t *intro;
int changed, prev_intro_nodes;
- smartlist_t *intro_routers, *exclude_routers;
+ smartlist_t *intro_routers;
time_t now;
or_options_t *options = get_options();
intro_routers = smartlist_create();
- exclude_routers = smartlist_create();
now = time(NULL);
for (i=0; i < smartlist_len(rend_service_list); ++i) {
@@ -1272,13 +1271,12 @@ rend_services_introduce(void)
/* Remember how many introduction circuits we started with. */
prev_intro_nodes = smartlist_len(service->intro_nodes);
- smartlist_add_all(exclude_routers, intro_routers);
/* The directory is now here. Pick three ORs as intro points. */
for (j=prev_intro_nodes; j < NUM_INTRO_POINTS; ++j) {
router_crn_flags_t flags = CRN_NEED_UPTIME;
if (get_options()->_AllowInvalid & ALLOW_INVALID_INTRODUCTION)
flags |= CRN_ALLOW_INVALID;
- router = router_choose_random_node(NULL, exclude_routers,
+ router = router_choose_random_node(NULL, intro_routers,
options->ExcludeNodes, flags);
if (!router) {
log_warn(LD_REND,
@@ -1288,7 +1286,6 @@ rend_services_introduce(void)
}
changed = 1;
smartlist_add(intro_routers, router);
- smartlist_add(exclude_routers, router);
intro = tor_malloc_zero(sizeof(rend_intro_point_t));
intro->extend_info = extend_info_from_router(router);
if (service->descriptor_version == 2) {
@@ -1300,9 +1297,6 @@ rend_services_introduce(void)
router->nickname, service->service_id);
}
- /* Reset exclude_routers, for the next time around the loop. */
- smartlist_clear(exclude_routers);
-
/* If there's no need to launch new circuits, stop here. */
if (!changed)
continue;
@@ -1318,7 +1312,6 @@ rend_services_introduce(void)
}
}
smartlist_free(intro_routers);
- smartlist_free(exclude_routers);
}
/** Regenerate and upload rendezvous service descriptors for all