[or-cvs] [tor/release-0.2.2 123/162] Fix logic error in router_dump_router_to_string.
arma at torproject.org
arma at torproject.org
Mon Dec 20 03:06:41 UTC 2010
Author: Robert Ransom <rransom.8774 at gmail.com>
Date: Fri, 19 Nov 2010 13:23:45 -0800
Subject: Fix logic error in router_dump_router_to_string.
Commit: 69472ca4210183ec11a632abd952b6060a086258
Spotted by Nick Mathewson.
---
src/or/router.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/or/router.c b/src/or/router.c
index 17c20ed..e82945e 100644
--- a/src/or/router.c
+++ b/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),
--
1.7.1
More information about the tor-commits
mailing list