aboutsummaryrefslogtreecommitdiff
path: root/src/or/dns.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-09-16 01:58:46 +0000
committerRoger Dingledine <arma@torproject.org>2003-09-16 01:58:46 +0000
commit9c6343fdf8ab6e8241c613c54bb3bd9cb6c78a91 (patch)
tree51cfb2f5d2c018c5d880e983e24b96d890f30e1a /src/or/dns.c
parente4dfc3c8fe70501354d0cbd56e313b77640e9233 (diff)
downloadtor-9c6343fdf8ab6e8241c613c54bb3bd9cb6c78a91.tar
tor-9c6343fdf8ab6e8241c613c54bb3bd9cb6c78a91.tar.gz
refactor connects into connection_connect()
svn:r460
Diffstat (limited to 'src/or/dns.c')
-rw-r--r--src/or/dns.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/dns.c b/src/or/dns.c
index 20fbd15ae..eb1673ee2 100644
--- a/src/or/dns.c
+++ b/src/or/dns.c
@@ -393,6 +393,7 @@ static int spawn_dnsworker(void) {
conn->receiver_bucket = -1; /* non-cell connections don't do receiver buckets */
conn->bandwidth = -1;
conn->s = fd[0];
+ conn->address = strdup("localhost");
if(connection_add(conn) < 0) { /* no space, forget it */
log_fn(LOG_INFO,"connection_add failed. Giving up.");