Fixed wrong prot size for IPv6
FossilOrigin-Name: b113c728b2a94fa9f99e3267ac2c3ac843269156bca5487018e5e4330f5b9ffe
This commit is contained in:
parent
f8f02e05ac
commit
370476b921
@ -45,7 +45,7 @@ int sock_setport(struct sockaddr *addr, int port)
|
||||
((struct sockaddr_in*)addr)->sin_port=htons(port);
|
||||
break;
|
||||
case AF_INET6:
|
||||
((struct sockaddr_in6*)addr)->sin6_port=htonl(port);
|
||||
((struct sockaddr_in6*)addr)->sin6_port=htons(port);
|
||||
break;
|
||||
default:
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user