diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-12-27 15:46:16 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-12-27 15:46:16 +0000 |
commit | ccda4e481c612f939fde0e591c027fb5d08d64ca (patch) | |
tree | 55a96bdff2dec89ad22aa6524cbd4b68d5706da1 /src/common/address.c | |
parent | ae71b52945bf0dda1ada01bb91f0d1c8a9b8b489 (diff) | |
download | tor-ccda4e481c612f939fde0e591c027fb5d08d64ca.tar.gz tor-ccda4e481c612f939fde0e591c027fb5d08d64ca.zip |
Fix compilation under gethostbyname-based systems.
svn:r17800
Diffstat (limited to 'src/common/address.c')
-rw-r--r-- | src/common/address.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/address.c b/src/common/address.c index d64a6f8f15..3f2103c1ce 100644 --- a/src/common/address.c +++ b/src/common/address.c @@ -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 */ } |