Author: cgutman
Date: Fri Sep 25 15:39:36 2009
New Revision: 43144
URL:
http://svn.reactos.org/svn/reactos?rev=43144&view=rev
Log:
- Fix a bug which causes port 0 to be classified as reserved instead of wildcard
Modified:
trunk/reactos/dll/win32/wshtcpip/wshtcpip.c
Modified: trunk/reactos/dll/win32/wshtcpip/wshtcpip.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/wshtcpip/wshtcpi…
==============================================================================
--- trunk/reactos/dll/win32/wshtcpip/wshtcpip.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/wshtcpip/wshtcpip.c [iso-8859-1] Fri Sep 25 15:39:36 2009
@@ -132,11 +132,12 @@
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;
}