1
0
Fork 0
forked from fte/fteqw

Fixed a linux/ip6 crash

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1082 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-06-07 17:30:40 +00:00
parent a488d6ae71
commit d2954819d4

View file

@ -210,7 +210,7 @@ void SockadrToNetadr (struct sockaddr_qstorage *s, netadr_t *a)
#ifdef IPPROTO_IPV6
case AF_INET6:
a->type = NA_IPV6;
memcpy((struct sockaddr_in6 *)&a->ip6, &((struct sockaddr_in6 *)s)->sin6_addr, sizeof(struct sockaddr_in6));
memcpy(&a->ip6, &((struct sockaddr_in6 *)s)->sin6_addr, sizeof(a->ip6));
a->port = ((struct sockaddr_in6 *)s)->sin6_port;
break;
#endif