Commit ab8b7ed5 authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

ws2_32: Return WSAENOBUFS from setsockopt() for IPPROTO_IPV6 with negative optlen.

parent 9ff978e5
......@@ -3149,6 +3149,12 @@ int WINAPI setsockopt( SOCKET s, int level, int optname, const char *optval, int
break;
case IPPROTO_IPV6:
if (optlen < 0)
{
SetLastError( WSAENOBUFS );
return SOCKET_ERROR;
}
switch(optname)
{
case IPV6_ADD_MEMBERSHIP:
......
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