Commit fd795497 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

ws2_32: Explicitly forbid setting SO_TYPE.

parent 5d113335
...@@ -3625,7 +3625,6 @@ int WINAPI WS_setsockopt(SOCKET s, int level, int optname, ...@@ -3625,7 +3625,6 @@ int WINAPI WS_setsockopt(SOCKET s, int level, int optname,
* however, using it the BSD way fixes bug 8513 and seems to be what * however, using it the BSD way fixes bug 8513 and seems to be what
* most programmers assume, anyway */ * most programmers assume, anyway */
case WS_SO_REUSEADDR: case WS_SO_REUSEADDR:
case WS_SO_TYPE:
convert_sockopt(&level, &optname); convert_sockopt(&level, &optname);
break; break;
...@@ -3716,6 +3715,7 @@ int WINAPI WS_setsockopt(SOCKET s, int level, int optname, ...@@ -3716,6 +3715,7 @@ int WINAPI WS_setsockopt(SOCKET s, int level, int optname,
/* fall through */ /* fall through */
case WS_SO_ACCEPTCONN: case WS_SO_ACCEPTCONN:
case WS_SO_TYPE:
SetLastError(WSAENOPROTOOPT); SetLastError(WSAENOPROTOOPT);
return SOCKET_ERROR; return SOCKET_ERROR;
} }
......
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