summaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-09-14 08:17:14 +0000
committerRoger Dingledine <arma@torproject.org>2003-09-14 08:17:14 +0000
commitebc23f690c38e70bfe1eb6aaa56a5c4eb9e35be4 (patch)
treeeb5b8c810fdabfbcb1be4d0576bbe31484e63b79 /src/or/connection.c
parentb63013e8470a2d44036d8157344484c2f4d8c6cd (diff)
downloadtor-ebc23f690c38e70bfe1eb6aaa56a5c4eb9e35be4.tar.gz
tor-ebc23f690c38e70bfe1eb6aaa56a5c4eb9e35be4.zip
bugfix: onion pending queue now works
and fixed recent memory leak svn:r456
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index 1cf6f619a1..73cefee98b 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -349,6 +349,8 @@ static int connection_tls_finish_handshake(connection_t *conn) {
conn->pkey = pk;
conn->bandwidth = router->bandwidth;
conn->addr = router->addr, conn->port = router->or_port;
+ if(conn->address)
+ free(conn->address);
conn->address = strdup(router->address);
}
} else { /* it's an OP */