summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2008-06-11 03:21:03 +0000
committerRoger Dingledine <arma@torproject.org>2008-06-11 03:21:03 +0000
commit474e1961a92e6be66f06cb2379dd1c413ff42349 (patch)
tree43858d99792ec000bddbb6e960c5aaaf81743436 /src/or
parent01aa4f95acd157ae6c4cccec531c63653bc2dc10 (diff)
downloadtor-474e1961a92e6be66f06cb2379dd1c413ff42349.tar.gz
tor-474e1961a92e6be66f06cb2379dd1c413ff42349.zip
When we're checking if we have enough dir info for each relay
to begin establishing circuits, make sure that we actually have the descriptor listed in the consensus, not just any descriptor. svn:r15119
Diffstat (limited to 'src/or')
-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 538d8e942f..83d36d351c 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -4162,7 +4162,7 @@ update_router_have_minimum_dir_info(void)
{
if (client_would_use_router(rs, now, options)) {
++num_usable;
- if (router_get_by_digest(rs->identity_digest)) {
+ if (router_get_by_descriptor_digest(rs->descriptor_digest)) {
++num_present;
}
}