- 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:
Cameron Gutman
2009-09-25 13:39:36 +00:00
parent 02b0f9d055
commit a7a1d470fe
+3 -2
View File
@@ -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;
}