(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.

This commit is contained in:
rubidium 2009-04-04 08:48:12 +00:00
parent 5eed35ef54
commit 616cac0c54

View File

@ -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: