summaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-07-08 15:15:59 -0400
committerNick Mathewson <nickm@torproject.org>2011-07-19 02:02:11 -0400
commit424063e3b2b882d72943bda41279bd29a711ec55 (patch)
treed40939c490c7069e46080f78b5eb158d9edba589 /src/or/connection.c
parentaef30547dc4aa77fc79517a6dcad7712b59af371 (diff)
downloadtor-424063e3b2b882d72943bda41279bd29a711ec55.tar.gz
tor-424063e3b2b882d72943bda41279bd29a711ec55.zip
Implement destaddr-based isolation
The new candidate rule, which arma suggested and I like, is that the original address as received from the client connection or as rewritten by the controller is the address that counts.
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index 09b45e03c9..5e5abca7aa 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -467,9 +467,9 @@ _connection_free(connection_t *conn)
if (CONN_IS_EDGE(conn)) {
edge_connection_t *edge_conn = TO_EDGE_CONN(conn);
tor_free(edge_conn->chosen_exit_name);
+ tor_free(edge_conn->original_dest_address);
if (edge_conn->socks_request)
socks_request_free(edge_conn->socks_request);
-
rend_data_free(edge_conn->rend_data);
}
if (conn->type == CONN_TYPE_CONTROL) {