summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toxcore/network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/network.c b/toxcore/network.c
index 6ae13160..83081a49 100644
--- a/toxcore/network.c
+++ b/toxcore/network.c
@@ -744,7 +744,7 @@ int addr_resolve(const char *address, IP *to, IP *extra)
744#ifdef TOX_ENABLE_IPV6 744#ifdef TOX_ENABLE_IPV6
745 else if (!(rc & 1)) { 745 else if (!(rc & 1)) {
746 struct sockaddr_in *addr = (struct sockaddr_in *)walker->ai_addr; 746 struct sockaddr_in *addr = (struct sockaddr_in *)walker->ai_addr;
747 to->ip4.in_addr = addr->sin_addr; 747 ip4.in_addr = addr->sin_addr;
748 rc |= 1; 748 rc |= 1;
749 } 749 }
750#endif 750#endif