Change WS_bind to accept an sa_family of 0 as "don't care".
This commit is contained in:
parent
e76d25f68c
commit
698a0cb44b
|
@ -1420,7 +1420,7 @@ int WINAPI WS_bind(SOCKET s, const struct WS_sockaddr* name, int namelen)
|
||||||
|
|
||||||
if (fd != -1)
|
if (fd != -1)
|
||||||
{
|
{
|
||||||
if (!name || !SUPPORTED_PF(name->sa_family))
|
if (!name || (name->sa_family && !SUPPORTED_PF(name->sa_family)))
|
||||||
{
|
{
|
||||||
SetLastError(WSAEAFNOSUPPORT);
|
SetLastError(WSAEAFNOSUPPORT);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue