diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-02-12 16:23:12 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-02-12 16:23:12 -0500 |
commit | d7089ff228227259137b5a8bc32d0764a0ad4155 (patch) | |
tree | 2917ff13a5d0af4b77c46241a9a6c8be68dc5b83 /src/or/circuitbuild.c | |
parent | bce5019eff37fc741747ef76c5d0a387569f9265 (diff) | |
download | tor-d7089ff228227259137b5a8bc32d0764a0ad4155.tar.gz tor-d7089ff228227259137b5a8bc32d0764a0ad4155.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index cea1cbd52b..753eaf8c16 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(); |