[PATCH v3] ws2_32: Return WSAEAFNOSUPPORT when ip4/6 disabled
Alexandre Julliard
julliard at winehq.org
Wed Nov 14 10:49:19 CST 2018
Brendan McGrath <brendan at redmandi.com> writes:
> Currently, when IPv6 is disabled by the kernel, attempting to use
> the 'WebRequest' API with .NET native causes a crash. This can be
> recreated using the following gist:
> https://gist.github.com/redmcg/7d81ef833c77bee6965b5f441006f697
>
> This patch fixes the crash by returning WSAEAFNOSUPPORT, as expected
> by .NET. See:
> https://referencesource.microsoft.com/#System/net/System/Net/Sockets/Socket.cs,5995
>
> Signed-off-by: Brendan McGrath <brendan at redmandi.com>
> ---
It breaks the tests:
../../../tools/runtest -q -P wine -T ../../.. -M ws2_32.dll -p ws2_32_test.exe.so sock && touch sock.ok
sock.c:2554: Test failed: Expected 10043, received 10047
sock.c:2561: Test failed: Expected 10043, received 10047
make[1]: *** [Makefile:220: sock.ok] Error 2
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list