summaryrefslogtreecommitdiff
path: root/src/or/connection_or.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-09-09 11:51:18 -0400
committerNick Mathewson <nickm@torproject.org>2014-09-09 11:51:18 -0400
commit59f3cce0dcddb98301d18d0cb4cb08c1619fa34c (patch)
tree988f823cc734aaaaf08c8fb0b40f372b4c66f4ff /src/or/connection_or.c
parent4af88d68b4905beac168adb5f1756d610ff7ed7e (diff)
parent607724c696a6e1bb10c8a955dac38f0ea947ce34 (diff)
downloadtor-59f3cce0dcddb98301d18d0cb4cb08c1619fa34c.tar.gz
tor-59f3cce0dcddb98301d18d0cb4cb08c1619fa34c.zip
Merge branch 'bug12899_squashed'
Diffstat (limited to 'src/or/connection_or.c')
-rw-r--r--src/or/connection_or.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c
index c372270b4c..7fcc5b24d6 100644
--- a/src/or/connection_or.c
+++ b/src/or/connection_or.c
@@ -908,18 +908,11 @@ connection_or_init_conn_from_address(or_connection_t *conn,
tor_free(conn->base_.address);
conn->base_.address = tor_dup_addr(&node_ap.addr);
} else {
- const char *n;
- /* If we're an authoritative directory server, we may know a
- * nickname for this router. */
- n = dirserv_get_nickname_by_digest(id_digest);
- if (n) {
- conn->nickname = tor_strdup(n);
- } else {
- conn->nickname = tor_malloc(HEX_DIGEST_LEN+2);
- conn->nickname[0] = '$';
- base16_encode(conn->nickname+1, HEX_DIGEST_LEN+1,
- conn->identity_digest, DIGEST_LEN);
- }
+ conn->nickname = tor_malloc(HEX_DIGEST_LEN+2);
+ conn->nickname[0] = '$';
+ base16_encode(conn->nickname+1, HEX_DIGEST_LEN+1,
+ conn->identity_digest, DIGEST_LEN);
+
tor_free(conn->base_.address);
conn->base_.address = tor_dup_addr(addr);
}