[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] [tor/release-0.2.2 123/162] Fix logic error in router_dump_router_to_string.
Author: Robert Ransom <rransom.8774@xxxxxxxxx>
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