aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-11-12 15:46:38 +0000
committerNick Mathewson <nickm@torproject.org>2007-11-12 15:46:38 +0000
commit6deca312a7720c5fa7c9679cd93f90b9536ea8f4 (patch)
tree7c1453efbf2b7db339985fae060ea87ec5019502
parent635cfd74657c0ec27970886c11822b2c0dfc489e (diff)
downloadtor-6deca312a7720c5fa7c9679cd93f90b9536ea8f4.tar.gz
tor-6deca312a7720c5fa7c9679cd93f90b9536ea8f4.zip
r16654@catbus: nickm | 2007-11-12 10:43:45 -0500
Add explanatory comment. Does not fix bug 548. svn:r12484
-rw-r--r--src/or/routerlist.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index ad50c2ebda..dbf0bbd3ff 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -3783,6 +3783,10 @@ update_consensus_router_descriptor_downloads(time_t now)
if (!(ri = router_get_by_digest(rs->identity_digest)) ||
memcmp(ri->cache_info.signed_descriptor_digest,
sd->signed_descriptor_digest, DIGEST_LEN)) {
+ /* We have a descriptor with this digest, but either there is no
+ * entry in routerlist with the same ID (!ri), or there is one,
+ * but the identity digest differs (memcmp).
+ */
smartlist_add(no_longer_old, sd);
++n_in_oldrouters; /* We have it in old_routers. */
}