aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/or/connection_edge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 4f12d54e8..fd250a36a 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -2796,7 +2796,7 @@ connection_exit_connect_dir(edge_connection_t *exitconn)
dirconn = dir_connection_new(AF_INET);
- dirconn->_base.addr = exitconn->_base.addr;
+ tor_addr_assign(&dirconn->_base.addr, &exitconn->_base.addr);
dirconn->_base.port = 0;
dirconn->_base.address = tor_strdup(exitconn->address);
dirconn->_base.type = CONN_TYPE_DIR;