summaryrefslogtreecommitdiff
path: root/src/or/routerlist.c
diff options
context:
space:
mode:
authorMatthew Finkel <Matthew.Finkel@gmail.com>2014-10-29 00:29:48 +0000
committerNick Mathewson <nickm@torproject.org>2015-12-18 13:14:09 -0500
commit0a7d22a664505c5235031fc2d3d792b83254b5ad (patch)
tree3236545e95744e96e0ac7ac4180a3c2ca3e63214 /src/or/routerlist.c
parent1ceb7142a131bd8706663d2b3c27d66a2dcb2a46 (diff)
downloadtor-0a7d22a664505c5235031fc2d3d792b83254b5ad.tar.gz
tor-0a7d22a664505c5235031fc2d3d792b83254b5ad.zip
Client should check if dir server has open dir port or handles tunnelled requests
Final piece of prop 237. Closes 12538.
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r--src/or/routerlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index c45854c52f..df6d797e0d 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -1512,7 +1512,7 @@ router_pick_directory_server_impl(dirinfo_type_t type, int flags,
if (!status)
continue;
- if (!node->is_running || !status->dir_port || !node->is_valid)
+ if (!node->is_running || !node_is_dir(node) || !node->is_valid)
continue;
if (requireother && router_digest_is_me(node->identity))
continue;