diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-12-11 23:17:06 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-12-11 23:17:06 +0000 |
commit | 9a3597c418e27f5552bd0ea8f7d3bb128c1faf86 (patch) | |
tree | 786785d50574152db4f4e7e5fbeb549bb2a9607c | |
parent | 1acfe321f86098df2ca712e550e7876c741a3da6 (diff) | |
download | tor-9a3597c418e27f5552bd0ea8f7d3bb128c1faf86.tar.gz tor-9a3597c418e27f5552bd0ea8f7d3bb128c1faf86.zip |
r17095@catbus: nickm | 2007-12-11 18:11:13 -0500
Backport r12766: Patch from mwenge: fix consensus status lookup by nickname when nickname is a hexdigest.
svn:r12770
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | src/or/routerlist.c | 4 |
2 files changed, 5 insertions, 2 deletions
@@ -88,6 +88,9 @@ Changes in version 0.1.2.18 - 2007-10-28 is fishy. Resolves bug 463. - Don't reset trusted dir server list when we set a configuration option. Patch from Robert Hogan. + - Fix handling of hex nicknames when answering controller requests for + networkstatus by name, or when deciding whether to warn about unknown + routers in a config option. (Patch from mwenge.) Changes in version 0.1.2.17 - 2007-08-30 diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 9ef41cefb4..19efac7e90 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -2845,11 +2845,11 @@ router_get_combined_status_by_nickname(const char *nickname, return NULL; if (nickname[0] == '$') { - if (base16_decode(digest, DIGEST_LEN, nickname+1, strlen(nickname))<0) + if (base16_decode(digest, DIGEST_LEN, nickname+1, strlen(nickname+1))<0) return NULL; return router_get_combined_status_by_digest(digest); } else if (strlen(nickname) == HEX_DIGEST_LEN && - (base16_decode(digest, DIGEST_LEN, nickname+1, strlen(nickname))==0)) { + (base16_decode(digest, DIGEST_LEN, nickname, strlen(nickname))==0)) { return router_get_combined_status_by_digest(digest); } |