diff options
author | Roger Dingledine <arma@torproject.org> | 2009-04-11 18:19:57 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2009-04-11 18:19:57 +0000 |
commit | fa003351aeafc240255c338713cbbf0eb3fc2f11 (patch) | |
tree | fb1d237a0925bff5c1713f7ab28d20fc494309d6 /src | |
parent | 8d82583d9709938165172bedf5d6ac3cd7cd8942 (diff) | |
download | tor-fa003351aeafc240255c338713cbbf0eb3fc2f11.tar.gz tor-fa003351aeafc240255c338713cbbf0eb3fc2f11.zip |
fix the same bug in two more locations (thanks to lark for prodding
me further)
svn:r19292
Diffstat (limited to 'src')
-rw-r--r-- | src/or/connection_edge.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index 5ac37c1f41..4f12d54e88 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -2623,8 +2623,8 @@ connection_exit_begin_conn(cell_t *cell, circuit_t *circ) if (rh.command == RELAY_COMMAND_BEGIN_DIR) { tor_assert(or_circ); - if (or_circ->p_conn && !tor_addr_is_null(&or_circ->p_conn->_base.addr)) - tor_addr_assign(&n_stream->_base.addr, &or_circ->p_conn->_base.addr); + if (or_circ->p_conn && !tor_addr_is_null(&or_circ->p_conn->real_addr)) + tor_addr_assign(&n_stream->_base.addr, &or_circ->p_conn->real_addr); return connection_exit_connect_dir(n_stream); } @@ -2798,7 +2798,7 @@ connection_exit_connect_dir(edge_connection_t *exitconn) dirconn->_base.addr = exitconn->_base.addr; dirconn->_base.port = 0; - dirconn->_base.address = tor_strdup(circ->p_conn->_base.address); + dirconn->_base.address = tor_strdup(exitconn->address); dirconn->_base.type = CONN_TYPE_DIR; dirconn->_base.purpose = DIR_PURPOSE_SERVER; dirconn->_base.state = DIR_CONN_STATE_SERVER_COMMAND_WAIT; |