mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Fix compilation under gethostbyname-based systems.
svn:r17800
This commit is contained in:
parent
ae71b52945
commit
ccda4e481c
@ -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 */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user