[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r17800: {tor} Fix compilation under gethostbyname-based systems. (tor/trunk/src/common)
Author: nickm
Date: 2008-12-27 10:46:16 -0500 (Sat, 27 Dec 2008)
New Revision: 17800
Modified:
tor/trunk/src/common/address.c
Log:
Fix compilation under gethostbyname-based systems.
Modified: tor/trunk/src/common/address.c
===================================================================
--- tor/trunk/src/common/address.c 2008-12-27 15:46:13 UTC (rev 17799)
+++ tor/trunk/src/common/address.c 2008-12-27 15:46:16 UTC (rev 17800)
@@ -225,7 +225,7 @@
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 */
}