Commit 5f9da35a authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

ws2_32: Return WSAEFAULT from setsockopt() for IP_MULTICAST_TTL with zero optlen.

parent c593b2f4
......@@ -2989,6 +2989,11 @@ int WINAPI setsockopt( SOCKET s, int level, int optname, const char *optval, int
return server_setsockopt( s, IOCTL_AFD_WINE_SET_IP_MULTICAST_LOOP, optval, optlen );
case IP_MULTICAST_TTL:
if (!optlen)
{
SetLastError( WSAEFAULT );
return -1;
}
return server_setsockopt( s, IOCTL_AFD_WINE_SET_IP_MULTICAST_TTL, optval, optlen );
case IP_OPTIONS:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment