Explorar o código

r9158@totoro: nickm | 2006-10-24 16:50:18 -0400
Oops on last authority patch: handle routers with unrecognized fingerprints correctly


svn:r8819

Nick Mathewson %!s(int64=19) %!d(string=hai) anos
pai
achega
ba1b04c736
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/or/dirserv.c

+ 2 - 1
src/or/dirserv.c

@@ -348,7 +348,8 @@ dirserv_get_status_impl(const char *id_digest, const char *nickname,
   }
   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)