[or-cvs] r8819: Oops on last authority patch: handle routers with unrecogniz (in tor/trunk: . src/or)

nickm at seul.org nickm at seul.org
Tue Oct 24 20:51:31 UTC 2006


Author: nickm
Date: 2006-10-24 16:51:28 -0400 (Tue, 24 Oct 2006)
New Revision: 8819

Modified:
   tor/trunk/
   tor/trunk/src/or/dirserv.c
Log:
 r9158 at totoro:  nickm | 2006-10-24 16:50:18 -0400
 Oops on last authority patch: handle routers with unrecognized fingerprints correctly



Property changes on: tor/trunk
___________________________________________________________________
 svk:merge ticket from /tor/trunk [r9158] on 96637b51-b116-0410-a10e-9941ebb49b64

Modified: tor/trunk/src/or/dirserv.c
===================================================================
--- tor/trunk/src/or/dirserv.c	2006-10-24 20:28:05 UTC (rev 8818)
+++ tor/trunk/src/or/dirserv.c	2006-10-24 20:51:28 UTC (rev 8819)
@@ -348,7 +348,8 @@
   }
   status_by_digest = digestmap_get(fingerprint_list->status_by_digest,
                                    id_digest);
-  result |= (status_by_digest->status & ~FP_NAMED);
+  if (status_by_digest)
+    result |= (status_by_digest->status & ~FP_NAMED);
 
   if (result & FP_REJECT) {
     if (msg)



More information about the tor-commits mailing list