From bcba9b957bece3da13ff4e91eefb358cd00e77da Mon Sep 17 00:00:00 2001 From: stal Date: Sun, 22 Sep 2013 17:49:14 -0700 Subject: Fix bug. This makes it build on OS X again... --- toxcore/DHT.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toxcore/DHT.c') diff --git a/toxcore/DHT.c b/toxcore/DHT.c index f0bc3de4..bdfe120f 100644 --- a/toxcore/DHT.c +++ b/toxcore/DHT.c @@ -456,7 +456,7 @@ void addto_lists(DHT *dht, IP_Port ip_port, uint8_t *client_id) uint32_t i; /* convert IPv4-in-IPv6 to IPv4 */ - if ((ip_port.ip.family == AF_INET6) && IN6_IS_ADDR_V4MAPPED(&ip_port.ip.ip6)) { + if ((ip_port.ip.family == AF_INET6) && IN6_IS_ADDR_V4MAPPED(&ip_port.ip.ip6.in6_addr)) { ip_port.ip.family = AF_INET; ip_port.ip.ip4.uint32 = ip_port.ip.ip6.uint32[3]; } -- cgit v1.2.3