]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix compilation under gethostbyname-based systems.
authorNick Mathewson <nickm@torproject.org>
Sat, 27 Dec 2008 15:46:16 +0000 (15:46 +0000)
committerNick Mathewson <nickm@torproject.org>
Sat, 27 Dec 2008 15:46:16 +0000 (15:46 +0000)
svn:r17800

src/common/address.c

index d64a6f8f1552f5d281e2e48c984df7c476f4e306..3f2103c1ce4615081dae0c3b21a625e0a67acf73 100644 (file)
@@ -225,7 +225,7 @@ tor_addr_lookup(const char *name, uint16_t family, tor_addr_t *addr)
       if (ent->h_addrtype == AF_INET) {
         tor_addr_from_in(addr, (struct in_addr*) ent->h_addr);
       } else if (ent->h_addrtype == AF_INET6) {
-        tor_addr_from_in(addr, (struct in6_addr*) ent->h_addr);
+        tor_addr_from_in6(addr, (struct in6_addr*) ent->h_addr);
       } else {
         tor_assert(0); /* gethostbyname() returned a bizarre addrtype */
       }