diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-08-27 14:12:10 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-08-27 14:12:10 +0000 |
commit | 6bf1dec9457d21a6268285f0763575f3b4164419 (patch) | |
tree | 2c9e428676ccd86e004fcca0d89585a0da750f62 /src/or/eventdns.c | |
parent | 472bdb0cc62e8566bd6400eb8aaae2bcd1a9158d (diff) | |
download | tor-6bf1dec9457d21a6268285f0763575f3b4164419.tar.gz tor-6bf1dec9457d21a6268285f0763575f3b4164419.zip |
Oops; set address families on nameservers.
svn:r16674
Diffstat (limited to 'src/or/eventdns.c')
-rw-r--r-- | src/or/eventdns.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/eventdns.c b/src/or/eventdns.c index 826514d86c..354d60ee03 100644 --- a/src/or/eventdns.c +++ b/src/or/eventdns.c @@ -2310,6 +2310,7 @@ evdns_nameserver_ip_add(const char *ip_as_string) { assert(addr_part); if (is_ipv6) { struct sockaddr_in6 sin6; + sin6.sin6_family = AF_INET6; sin6.sin6_port = htons(port); if (1 != tor_inet_pton(AF_INET6, addr_part, &sin6.sin6_addr)) return 4; @@ -2317,6 +2318,7 @@ evdns_nameserver_ip_add(const char *ip_as_string) { sizeof(sin6)); } else { struct sockaddr_in sin; + sin.sin_family = AF_INET; sin.sin_port = htons(port); if (!inet_aton(addr_part, &sin.sin_addr)) return 4; |