ws2_32: Explicitly forbid setting SO_TYPE.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2021-06-22 10:24:15 -05:00 committed by Alexandre Julliard
parent 5d11333593
commit fd7954974b
1 changed files with 1 additions and 1 deletions

View File

@ -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
* most programmers assume, anyway */
case WS_SO_REUSEADDR:
case WS_SO_TYPE:
convert_sockopt(&level, &optname);
break;
@ -3716,6 +3715,7 @@ int WINAPI WS_setsockopt(SOCKET s, int level, int optname,
/* fall through */
case WS_SO_ACCEPTCONN:
case WS_SO_TYPE:
SetLastError(WSAENOPROTOOPT);
return SOCKET_ERROR;
}