aboutsummaryrefslogtreecommitdiff
path: root/src/or/rendclient.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-02-22 17:19:41 -0500
committerNick Mathewson <nickm@torproject.org>2011-02-22 17:19:41 -0500
commit491abbc65e535b5308d6c57ab9ab3900ac2dd2d2 (patch)
tree63f1dc9a7f92bd931d14cd78aa37fd8ba3a59e81 /src/or/rendclient.c
parent7605985b3ff71cee7fabdf023baf298b218d04c1 (diff)
parent2392290c1887b732fd2309e57ce04ab71b9b4e69 (diff)
downloadtor-491abbc65e535b5308d6c57ab9ab3900ac2dd2d2.tar.gz
tor-491abbc65e535b5308d6c57ab9ab3900ac2dd2d2.zip
Merge remote branch 'public/bug1859_021' into maint-0.2.1
Diffstat (limited to 'src/or/rendclient.c')
-rw-r--r--src/or/rendclient.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/or/rendclient.c b/src/or/rendclient.c
index 783a66150e..af91099fcb 100644
--- a/src/or/rendclient.c
+++ b/src/or/rendclient.c
@@ -814,7 +814,10 @@ rend_client_get_random_intro(const rend_data_t *rend_query)
intro = smartlist_get(entry->parsed->intro_nodes, i);
/* Do we need to look up the router or is the extend info complete? */
if (!intro->extend_info->onion_key) {
- router = router_get_by_nickname(intro->extend_info->nickname, 0);
+ if (tor_digest_is_zero(intro->extend_info->identity_digest))
+ router = router_get_by_hexdigest(intro->extend_info->nickname);
+ else
+ router = router_get_by_digest(intro->extend_info->identity_digest);
if (!router) {
log_info(LD_REND, "Unknown router with nickname '%s'; trying another.",
intro->extend_info->nickname);