]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Use a clearer idiom for node identity in router_counts_toward_thresholds
authorNick Mathewson <nickm@torproject.org>
Sun, 5 May 2013 22:55:19 +0000 (18:55 -0400)
committerNick Mathewson <nickm@torproject.org>
Sun, 5 May 2013 22:55:19 +0000 (18:55 -0400)
src/or/dirserv.c

index 16f297a80a5410d424123f1f55d4ee37ca6fd43f..8f6d9ec43860dfb64add084501799769880506cc 100644 (file)
@@ -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);
 }