diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-05-15 20:12:20 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-05-15 20:12:20 -0400 |
commit | 68acfefbdb7a25ac1585c9480a8c98cadca50b7a (patch) | |
tree | 42b6ff228bb1836f2309bef4ff5ef940506badff /src/or/routerlist.c | |
parent | ced06a80097d2c4f26b1f44447710ec33b9d2421 (diff) | |
parent | bc44393eb59a1d303314b4b646b4d815f4eadc22 (diff) | |
download | tor-68acfefbdb7a25ac1585c9480a8c98cadca50b7a.tar.gz tor-68acfefbdb7a25ac1585c9480a8c98cadca50b7a.zip |
Merge remote-tracking branch 'origin/maint-0.2.2'
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r-- | src/or/routerlist.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 2b383198a8..5ce50aa461 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -2382,8 +2382,8 @@ router_get_by_nickname(const char *nickname, int warn_if_unnamed) if (n_matches <= 1 || router->is_running) best_match = router; } else if (maybedigest && - tor_memeq(digest, router->cache_info.identity_digest, DIGEST_LEN) - ) { + tor_memeq(digest, router->cache_info.identity_digest, + DIGEST_LEN)) { if (router_hex_digest_matches(router, nickname)) return router; /* If we reach this point, we have a ID=name syntax that matches the @@ -5164,8 +5164,9 @@ routerinfo_incompatible_with_extrainfo(const routerinfo_t *ri, /* The identity must match exactly to have been generated at the same time * by the same router. */ - if (tor_memneq(ri->cache_info.identity_digest, ei->cache_info.identity_digest, - DIGEST_LEN)) { + if (tor_memneq(ri->cache_info.identity_digest, + ei->cache_info.identity_digest, + DIGEST_LEN)) { if (msg) *msg = "Extrainfo nickname or identity did not match routerinfo"; goto err; /* different servers */ } |