diff options
author | Roger Dingledine <arma@torproject.org> | 2003-10-04 03:29:09 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2003-10-04 03:29:09 +0000 |
commit | be874358a4385d8d6bd7f82d3f372bb79055033c (patch) | |
tree | 72b615a6357820b49e9a66ab32c3554463a7834c /src/or/connection_or.c | |
parent | f563bbd2f988cd1f6ca292f89a47a86f98fe0e8d (diff) | |
download | tor-be874358a4385d8d6bd7f82d3f372bb79055033c.tar tor-be874358a4385d8d6bd7f82d3f372bb79055033c.tar.gz |
wrap strdup; prefer time() to gettimeofday()
svn:r538
Diffstat (limited to 'src/or/connection_or.c')
-rw-r--r-- | src/or/connection_or.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c index 0a1e41406..5ee63b27d 100644 --- a/src/or/connection_or.c +++ b/src/or/connection_or.c @@ -83,10 +83,10 @@ void connection_or_init_conn_from_router(connection_t *conn, routerinfo_t *route conn->onion_pkey = crypto_pk_dup_key(router->onion_pkey); conn->link_pkey = crypto_pk_dup_key(router->link_pkey); conn->identity_pkey = crypto_pk_dup_key(router->identity_pkey); - conn->nickname = strdup(router->nickname); + conn->nickname = tor_strdup(router->nickname); if(conn->address) free(conn->address); - conn->address = strdup(router->address); + conn->address = tor_strdup(router->address); } connection_t *connection_or_connect(routerinfo_t *router) { |