[or-cvs] r12484: Add explanatory comment. Does not fix bug 548. (in tor/trunk: . src/or)

nickm at seul.org nickm at seul.org
Mon Nov 12 15:46:38 UTC 2007


Author: nickm
Date: 2007-11-12 10:46:38 -0500 (Mon, 12 Nov 2007)
New Revision: 12484

Modified:
   tor/trunk/
   tor/trunk/src/or/routerlist.c
Log:
 r16654 at catbus:  nickm | 2007-11-12 10:43:45 -0500
 Add explanatory comment.  Does not fix bug 548.



Property changes on: tor/trunk
___________________________________________________________________
 svk:merge ticket from /tor/trunk [r16654] on 8246c3cf-6607-4228-993b-4d95d33730f1

Modified: tor/trunk/src/or/routerlist.c
===================================================================
--- tor/trunk/src/or/routerlist.c	2007-11-11 21:12:43 UTC (rev 12483)
+++ tor/trunk/src/or/routerlist.c	2007-11-12 15:46:38 UTC (rev 12484)
@@ -3783,6 +3783,10 @@
         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. */
         }



More information about the tor-commits mailing list