[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/release-0.2.4] Use a clearer idiom for node identity in router_counts_toward_thresholds



commit a1d7f7ea503f2f739953d6a25ebb5d93981604be
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Sun May 5 18:55:19 2013 -0400

    Use a clearer idiom for node identity in router_counts_toward_thresholds
---
 src/or/dirserv.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index 16f297a..8f6d9ec 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -1898,7 +1898,7 @@ router_counts_toward_thresholds(const node_t *node, time_t now,
   }
 
   return node->ri && router_is_active(node->ri, node, now) &&
-    !digestmap_get(omit_as_sybil, node->ri->cache_info.identity_digest) &&
+    !digestmap_get(omit_as_sybil, node->identity) &&
     (dirserv_get_credible_bandwidth_kb(node->ri) >= min_bw_kb) &&
     (have_mbw || !require_mbw);
 }



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits