[ofw] incorrect SID generation in WvGetServiceId
Fab Tillier
ftillier at microsoft.com
Fri Feb 11 10:25:22 PST 2011
Hi Sean,
WvGetServiceId swaps the port number in the sockaddr but shouldn't. The port number in a sockaddr structure is already in network order. See http://msdn.microsoft.com/en-us/library/ff570823(VS.85).aspx, the remarks section:
" All of the data in the SOCKADDR_IN structure, except for the address family, must be specified in network-byte-order (big-endian)."
-Fab
More information about the ofw
mailing list