diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-03-28 16:36:51 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-03-28 16:36:51 -0400 |
commit | 055a7a198a1517a6d1d37c4dac9ac8e925d7aa7d (patch) | |
tree | 53c7b4381e0d15b25801607407f1897c0682d118 /src/or/connection.c | |
parent | 3220bd816b1a20eeb8bcaf562dc5382439bb00f7 (diff) | |
download | tor-055a7a198a1517a6d1d37c4dac9ac8e925d7aa7d.tar.gz tor-055a7a198a1517a6d1d37c4dac9ac8e925d7aa7d.zip |
Rename tor_dup_addr to tor_addr_to_str_dup.
Patch from icanhasaccount; closes 18462.
Diffstat (limited to 'src/or/connection.c')
-rw-r--r-- | src/or/connection.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index 118e239176..78178f92fb 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -1564,7 +1564,7 @@ connection_handle_listener_read(connection_t *conn, int new_type) /* remember the remote address */ tor_addr_copy(&newconn->addr, &addr); newconn->port = port; - newconn->address = tor_dup_addr(&addr); + newconn->address = tor_addr_to_str_dup(&addr); if (new_type == CONN_TYPE_AP && conn->socket_family != AF_UNIX) { log_info(LD_NET, "New SOCKS connection opened from %s.", @@ -2538,7 +2538,7 @@ retry_listener_ports(smartlist_t *old_conns, real_port, listensockaddr, sizeof(struct sockaddr_storage)); - address = tor_dup_addr(&port->addr); + address = tor_addr_to_str_dup(&port->addr); } if (listensockaddr) { |