Commit 698a0cb4 authored by Troy Rollo's avatar Troy Rollo Committed by Alexandre Julliard

Change WS_bind to accept an sa_family of 0 as "don't care".

parent e76d25f6
......@@ -1420,7 +1420,7 @@ int WINAPI WS_bind(SOCKET s, const struct WS_sockaddr* name, int namelen)
if (fd != -1)
{
if (!name || !SUPPORTED_PF(name->sa_family))
if (!name || (name->sa_family && !SUPPORTED_PF(name->sa_family)))
{
SetLastError(WSAEAFNOSUPPORT);
}
......
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