From 616cac0c547b361b033ab64021dcd4c3d722f200 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 4 Apr 2009 08:48:12 +0000 Subject: (svn r15951) -Fix (r15946) [FS#2803]: ofcourse a couple of OSes/compilers do not provide a nice 'interface', so we have to do it the ugly way. --- src/network/core/address.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/network') diff --git a/src/network/core/address.cpp b/src/network/core/address.cpp index 56c49a83f..e61024111 100644 --- a/src/network/core/address.cpp +++ b/src/network/core/address.cpp @@ -125,8 +125,8 @@ bool NetworkAddress::IsInNetmask(char *netmask) break; case AF_INET6: - ip = (uint32*)((struct sockaddr_in6*)&this->address)->sin6_addr.s6_addr32; - mask = (uint32*)((struct sockaddr_in6*)&mask_address.address)->sin6_addr.s6_addr32; + ip = (uint32*)&((struct sockaddr_in6*)&this->address)->sin6_addr; + mask = (uint32*)&((struct sockaddr_in6*)&mask_address.address)->sin6_addr; break; default: -- cgit v1.2.3-70-g09d2