aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-10-04 03:29:09 +0000
committerRoger Dingledine <arma@torproject.org>2003-10-04 03:29:09 +0000
commitbe874358a4385d8d6bd7f82d3f372bb79055033c (patch)
tree72b615a6357820b49e9a66ab32c3554463a7834c /src/or/directory.c
parentf563bbd2f988cd1f6ca292f89a47a86f98fe0e8d (diff)
downloadtor-be874358a4385d8d6bd7f82d3f372bb79055033c.tar
tor-be874358a4385d8d6bd7f82d3f372bb79055033c.tar.gz
wrap strdup; prefer time() to gettimeofday()
svn:r538
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 88854a35c..c302dcdfc 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -45,8 +45,8 @@ void directory_initiate_command(routerinfo_t *router, int command) {
/* set up conn so it's got all the data we need to remember */
conn->addr = router->addr;
conn->port = router->dir_port;
- conn->address = strdup(router->address);
- conn->nickname = strdup(router->nickname);
+ conn->address = tor_strdup(router->address);
+ conn->nickname = tor_strdup(router->nickname);
if (router->identity_pkey)
conn->identity_pkey = crypto_pk_dup_key(router->identity_pkey);
else {