aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-02-12 16:23:12 -0500
committerNick Mathewson <nickm@torproject.org>2013-02-12 16:23:12 -0500
commitd7089ff228227259137b5a8bc32d0764a0ad4155 (patch)
tree2917ff13a5d0af4b77c46241a9a6c8be68dc5b83 /src/or/circuitbuild.c
parentbce5019eff37fc741747ef76c5d0a387569f9265 (diff)
downloadtor-d7089ff228227259137b5a8bc32d0764a0ad4155.tar
tor-d7089ff228227259137b5a8bc32d0764a0ad4155.tar.gz
Restore the entry/dirguard distinction.
We shouldn't be calling choose_random_entry() for directory conncetions; that's what choose_random_dirguard() is for.
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 cea1cbd52..753eaf8c1 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, NO_DIRINFO);
+ return choose_random_entry(state);
}
excluded = smartlist_new();