- Fix a few ws2_32:getaddrinfo test failures. Based on a patch by Peter Hater.
CORE-11368

svn path=/trunk/; revision=71951
This commit is contained in:
Thomas Faber 2016-07-16 07:49:30 +00:00
parent e556dea177
commit beec6930e7

View file

@ -1605,23 +1605,20 @@ getaddrinfo(const char FAR * nodename,
struct sockaddr_in *sin;
INT error;
if (res == NULL)
{
error = WSAEINVAL;
goto End;
}
if (nodename == NULL && servname == NULL)
{
error = WSAHOST_NOT_FOUND;
goto End;
}
if (!WSAINITIALIZED)
{
error = WSANOTINITIALISED;
goto End;
}
*res = NULL;
if (nodename == NULL && servname == NULL)
{
error = WSAHOST_NOT_FOUND;
goto End;
}
if (servname)
{
/* converting port number */