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/dns.c | |
parent | f563bbd2f988cd1f6ca292f89a47a86f98fe0e8d (diff) | |
download | tor-be874358a4385d8d6bd7f82d3f372bb79055033c.tar.gz tor-be874358a4385d8d6bd7f82d3f372bb79055033c.zip |
wrap strdup; prefer time() to gettimeofday()
svn:r538
Diffstat (limited to 'src/or/dns.c')
-rw-r--r-- | src/or/dns.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/dns.c b/src/or/dns.c index 75f17c6e64..fdd9742685 100644 --- a/src/or/dns.c +++ b/src/or/dns.c @@ -165,7 +165,7 @@ static int assign_to_dnsworker(connection_t *exitconn) { return -1; } - dnsconn->address = strdup(exitconn->address); + dnsconn->address = tor_strdup(exitconn->address); dnsconn->state = DNSWORKER_STATE_BUSY; num_dnsworkers_busy++; @@ -381,7 +381,7 @@ static int spawn_dnsworker(void) { /* set up conn so it's got all the data we need to remember */ conn->s = fd[0]; - conn->address = strdup("localhost"); + conn->address = tor_strdup("localhost"); if(connection_add(conn) < 0) { /* no space, forget it */ log_fn(LOG_WARNING,"connection_add failed. Giving up."); |