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

This commit is contained in:
Troy Rollo 2005-06-20 10:30:50 +00:00 committed by Alexandre Julliard
parent e76d25f68c
commit 698a0cb44b
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}