mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 22:01:50 +00:00
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:
parent
a488d6ae71
commit
d2954819d4
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue