Browse Source

Fix logic error in router_dump_router_to_string.

Spotted by Nick Mathewson.
Robert Ransom 15 years ago
parent
commit
69472ca421
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/or/router.c

+ 1 - 1
src/or/router.c

@@ -1805,7 +1805,7 @@ router_dump_router_to_string(char *s, size_t maxlen, routerinfo_t *router,
   }
 
   has_extra_info_digest =
-    tor_digest_is_zero(router->cache_info.extra_info_digest);
+    ! tor_digest_is_zero(router->cache_info.extra_info_digest);
 
   if (has_extra_info_digest) {
     base16_encode(extra_info_digest, sizeof(extra_info_digest),