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

[or-cvs] r10221: Fix another consistency error. (in tor/trunk: . src/or)



Author: nickm
Date: 2007-05-19 14:48:53 -0400 (Sat, 19 May 2007)
New Revision: 10221

Modified:
   tor/trunk/
   tor/trunk/src/or/routerlist.c
Log:
 r12808@catbus:  nickm | 2007-05-19 14:48:51 -0400
 Fix another consistency error. 



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

Modified: tor/trunk/src/or/routerlist.c
===================================================================
--- tor/trunk/src/or/routerlist.c	2007-05-19 18:31:04 UTC (rev 10220)
+++ tor/trunk/src/or/routerlist.c	2007-05-19 18:48:53 UTC (rev 10221)
@@ -1885,6 +1885,8 @@
     sd = signed_descriptor_from_routerinfo(ri);
     smartlist_add(rl->old_routers, sd);
     digestmap_set(rl->desc_digest_map, sd->signed_descriptor_digest, sd);
+    if (!tor_digest_is_zero(sd->extra_info_digest))
+      digestmap_set(rl->desc_by_eid_map, sd->extra_info_digest, sd);
   } else {
     ri_tmp = digestmap_remove(rl->desc_digest_map,
                               ri->cache_info.signed_descriptor_digest);