ws2_32: Return WSAEFAULT from setsockopt() for IP_TTL with zero optlen.
Signed-off-by: Paul Gofman <pgofman@codeweavers.com> Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5f9da35af1
commit
0baf44e320
|
@ -3023,6 +3023,11 @@ int WINAPI setsockopt( SOCKET s, int level, int optname, const char *optval, int
|
|||
return server_setsockopt( s, IOCTL_AFD_WINE_SET_IP_TOS, optval, optlen );
|
||||
|
||||
case IP_TTL:
|
||||
if (!optlen)
|
||||
{
|
||||
SetLastError( WSAEFAULT );
|
||||
return -1;
|
||||
}
|
||||
return server_setsockopt( s, IOCTL_AFD_WINE_SET_IP_TTL, optval, optlen );
|
||||
|
||||
case IP_UNBLOCK_SOURCE:
|
||||
|
|
Loading…
Reference in New Issue