aboutsummaryrefslogtreecommitdiff
path: root/src/or/nodelist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-03-05 12:44:40 -0500
committerNick Mathewson <nickm@torproject.org>2014-03-05 12:44:40 -0500
commitf0b2dc83b60b0de1644ce9fb5e19fef516e9ffde (patch)
treeee8e9b36590f7cb2f349aa25eeb1abd33e20a7b1 /src/or/nodelist.c
parent12954908623a285606ec7522168cd2ac7e799525 (diff)
parent74e6a47a808803c985f55b626dff294dbe425043 (diff)
downloadtor-f0b2dc83b60b0de1644ce9fb5e19fef516e9ffde.tar.gz
tor-f0b2dc83b60b0de1644ce9fb5e19fef516e9ffde.zip
Merge remote-tracking branch 'arma/ticket5528'
Conflicts: src/or/router.c src/test/test_dir.c
Diffstat (limited to 'src/or/nodelist.c')
-rw-r--r--src/or/nodelist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/nodelist.c b/src/or/nodelist.c
index 03fa836d4e..737de92eee 100644
--- a/src/or/nodelist.c
+++ b/src/or/nodelist.c
@@ -785,7 +785,7 @@ void
node_get_address_string(const node_t *node, char *buf, size_t len)
{
if (node->ri) {
- strlcpy(buf, node->ri->address, len);
+ strlcpy(buf, fmt_addr32(node->ri->addr), len);
} else if (node->rs) {
tor_addr_t addr;
tor_addr_from_ipv4h(&addr, node->rs->addr);