aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection_or.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-10-21 09:48:17 +0000
committerRoger Dingledine <arma@torproject.org>2003-10-21 09:48:17 +0000
commite4127e4d3666da72415ad5f673f2f6136531836f (patch)
tree6cffdc84c27d917b0293b1a1d1ef1503b45dedf8 /src/or/connection_or.c
parent80d428b2253e085382edcdb7b741329f9a0f36c0 (diff)
downloadtor-e4127e4d3666da72415ad5f673f2f6136531836f.tar
tor-e4127e4d3666da72415ad5f673f2f6136531836f.tar.gz
move closer to being able to reload config on HUP
rename APPort to SocksPort introduce new tor_free() macro svn:r642
Diffstat (limited to 'src/or/connection_or.c')
-rw-r--r--src/or/connection_or.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c
index bdaf16e23..ebc24c495 100644
--- a/src/or/connection_or.c
+++ b/src/or/connection_or.c
@@ -85,8 +85,7 @@ void connection_or_init_conn_from_router(connection_t *conn, routerinfo_t *route
conn->link_pkey = crypto_pk_dup_key(router->link_pkey);
conn->identity_pkey = crypto_pk_dup_key(router->identity_pkey);
conn->nickname = tor_strdup(router->nickname);
- if(conn->address)
- free(conn->address);
+ tor_free(conn->address);
conn->address = tor_strdup(router->address);
}