http://bugs.winehq.org/show_bug.cgi?id=8514
------- Additional Comments From citizenr@gmail.com 2007-09-06 05:37 ------- I realised that I was reading that file from bottom to top while taking a shower an hour after the post :) I looked at the code again and thers this few lines above
if ( i == 0 ) { peer[i].addr.sin_port = htons ( SERVERPORT ); } else { peer[i].addr.sin_port = htons ( 0 ); }
so the author of this testcase wrote ok ( peer[i].addr.sin_port != htons ( 0 ), "UDP: bind() did not associate port\n" ); thinking that a/ using sin_port returned by getsockname to check if we get the port bind is a good idea b/ it can happen with no SOCKET_ERROR