mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
- Fix a bug which causes port 0 to be classified as reserved instead of wildcard
svn path=/trunk/; revision=43144
This commit is contained in:
@@ -132,11 +132,12 @@ WSHGetSockaddrType(
|
||||
break;
|
||||
}
|
||||
|
||||
SockaddrInfo->EndpointInfo = SockaddrEndpointInfoNormal;
|
||||
if (ntohs(ipv4->sin_port) == 0)
|
||||
SockaddrInfo->EndpointInfo = SockaddrEndpointInfoWildcard;
|
||||
if (ntohs(ipv4->sin_port) < IPPORT_RESERVED)
|
||||
else if (ntohs(ipv4->sin_port) < IPPORT_RESERVED)
|
||||
SockaddrInfo->EndpointInfo = SockaddrEndpointInfoReserved;
|
||||
else
|
||||
SockaddrInfo->EndpointInfo = SockaddrEndpointInfoNormal;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user