aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2012-01-25 20:49:32 -0500
committerAndrea Shepard <andrea@torproject.org>2013-02-02 08:19:27 -0800
commitbce5019eff37fc741747ef76c5d0a387569f9265 (patch)
tree8a5199b366aeb30bc4d2effc622c2de30384fec0 /src/or/circuitbuild.c
parenta8297cdbd3324ac707165ae9922ecf478c4608a1 (diff)
downloadtor-bce5019eff37fc741747ef76c5d0a387569f9265.tar
tor-bce5019eff37fc741747ef76c5d0a387569f9265.tar.gz
generalize choose_random_entry()'s dirinfo parameter
Now we can specify to skip bridges that wouldn't be able to answer the type of dir fetch we're launching. It's still the responsibility of the rest of the code to prevent us from launching a given dir fetch if we have no bridges that could handle it.
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r--src/or/circuitbuild.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 8c86aac90..cea1cbd52 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -3373,7 +3373,7 @@ choose_good_entry_server(uint8_t purpose, cpath_build_state_t *state)
(purpose != CIRCUIT_PURPOSE_TESTING || options->BridgeRelay)) {
/* This request is for an entry server to use for a regular circuit,
* and we use entry guard nodes. Just return one of the guard nodes. */
- return choose_random_entry(state, 0);
+ return choose_random_entry(state, NO_DIRINFO);
}
excluded = smartlist_new();