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/directory.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/directory.c')
-rw-r--r-- | src/or/directory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index a1ac2ad2e6..6b61fc6a99 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -478,7 +478,7 @@ directory_get_from_dirserver(uint8_t dir_purpose, uint8_t router_purpose, */ /* XXX024 Not all bridges handle conditional consensus downloading, * so, for now, never assume the server supports that. -PP */ - const node_t *node = choose_random_entry(NULL, type); + const node_t *node = choose_random_dirguard(type); if (node && node->ri) { /* every bridge has a routerinfo. */ tor_addr_t addr; |