aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-10-21 11:01:12 -0400
committerNick Mathewson <nickm@torproject.org>2010-10-21 11:01:12 -0400
commit0e8d1c22177fa10b7f5fd6214d6b3c7e5eeaafac (patch)
tree0bb172119c9107999df60759e386e9a37befa16c /src/or
parentea7f4be6d271639bff0731108751a0b20c0b860e (diff)
parent69a496ba9810f5065f55af558932e84152ce50bc (diff)
downloadtor-0e8d1c22177fa10b7f5fd6214d6b3c7e5eeaafac.tar
tor-0e8d1c22177fa10b7f5fd6214d6b3c7e5eeaafac.tar.gz
Merge remote branch 'hoganrobert/bug1859' into maint-0.2.2
Diffstat (limited to 'src/or')
-rw-r--r--src/or/connection_edge.c2
-rw-r--r--src/or/rendclient.c2
-rw-r--r--src/or/routerlist.c3
3 files changed, 2 insertions, 5 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index da0fc1856..0970cda4b 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -600,7 +600,7 @@ circuit_discard_optional_exit_enclaves(extend_info_t *info)
!edge_conn->chosen_exit_retries)
continue;
r1 = router_get_by_nickname(edge_conn->chosen_exit_name, 0);
- r2 = router_get_by_nickname(info->nickname, 0);
+ r2 = router_get_by_digest(info->identity_digest);
if (!r1 || !r2 || r1 != r2)
continue;
tor_assert(edge_conn->socks_request);
diff --git a/src/or/rendclient.c b/src/or/rendclient.c
index 68abb886a..cc1c2733a 100644
--- a/src/or/rendclient.c
+++ b/src/or/rendclient.c
@@ -755,7 +755,7 @@ 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);
+ 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);
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index e52165ed8..8ed9a7f5e 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -2273,9 +2273,6 @@ router_get_by_nickname(const char *nickname, int warn_if_unnamed)
return router_get_by_hexdigest(nickname);
if (!strcasecmp(nickname, UNNAMED_ROUTER_NICKNAME))
return NULL;
- if (server_mode(get_options()) &&
- !strcasecmp(nickname, get_options()->Nickname))
- return router_get_my_routerinfo();
maybedigest = (strlen(nickname) >= HEX_DIGEST_LEN) &&
(base16_decode(digest,DIGEST_LEN,nickname,HEX_DIGEST_LEN) == 0);