summaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-08-18 10:32:50 +0000
committerRoger Dingledine <arma@torproject.org>2004-08-18 10:32:50 +0000
commit3937ecfaae5aa9613e48a3f383acfe15d705ab7c (patch)
tree25ce79bcbdc6ae8637e699e6ae803d2169f81648 /src/or/circuitbuild.c
parent20b88190238a9fe4ba3399e45f1f3e068fdba2e4 (diff)
downloadtor-3937ecfaae5aa9613e48a3f383acfe15d705ab7c.tar.gz
tor-3937ecfaae5aa9613e48a3f383acfe15d705ab7c.zip
when we try to exclude our routerinfo from being picked in the
path, it fails because we're using a pointer to the routerinfo we generate, not a pointer to the routerinfo in the routerlist. so look up the right one and use that. svn:r2286
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r--src/or/circuitbuild.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index acc2deb375..9a45492589 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -1098,7 +1098,7 @@ static routerinfo_t *choose_good_middle_server(cpath_build_state_t *state,
excluded = smartlist_create();
if((r = router_get_by_digest(state->chosen_exit_digest)))
smartlist_add(excluded, r);
- if((r = router_get_my_routerinfo()))
+ if((r = routerlist_find_my_routerinfo()))
smartlist_add(excluded, r);
for (i = 0, cpath = head; i < cur_len; ++i, cpath=cpath->next) {
r = router_get_by_digest(cpath->identity_digest);
@@ -1119,7 +1119,7 @@ static routerinfo_t *choose_good_entry_server(cpath_build_state_t *state)
if((r = router_get_by_digest(state->chosen_exit_digest)))
smartlist_add(excluded, r);
- if((r = router_get_my_routerinfo()))
+ if((r = routerlist_find_my_routerinfo()))
smartlist_add(excluded, r);
if(options.FascistFirewall) {
/* exclude all ORs that listen on the wrong port */