summaryrefslogtreecommitdiff
path: root/toxcore/DHT.c
diff options
context:
space:
mode:
authorstal <stal@pyboard.net>2013-09-22 17:49:14 -0700
committerstal <stal@pyboard.net>2013-09-22 17:49:14 -0700
commitbcba9b957bece3da13ff4e91eefb358cd00e77da (patch)
tree5b0eb445f5faffb013333d9cc333f50294c191ac /toxcore/DHT.c
parent59170c7d014c79eab268ebef39d0b20809602903 (diff)
Fix bug.
This makes it build on OS X again...
Diffstat (limited to 'toxcore/DHT.c')
-rw-r--r--toxcore/DHT.c2
1 files changed, 1 insertions, 1 deletions
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)
456 uint32_t i; 456 uint32_t i;
457 457
458 /* convert IPv4-in-IPv6 to IPv4 */ 458 /* convert IPv4-in-IPv6 to IPv4 */
459 if ((ip_port.ip.family == AF_INET6) && IN6_IS_ADDR_V4MAPPED(&ip_port.ip.ip6)) { 459 if ((ip_port.ip.family == AF_INET6) && IN6_IS_ADDR_V4MAPPED(&ip_port.ip.ip6.in6_addr)) {
460 ip_port.ip.family = AF_INET; 460 ip_port.ip.family = AF_INET;
461 ip_port.ip.ip4.uint32 = ip_port.ip.ip6.uint32[3]; 461 ip_port.ip.ip4.uint32 = ip_port.ip.ip6.uint32[3];
462 } 462 }