Merge pull request #6034 from akallabeth/addrinfo

Fix #6033: freeaddrinfo must not be called with NULL arguments.
This commit is contained in:
Martin Fleisz 2020-04-09 14:37:39 +02:00 committed by GitHub
commit b52cc2cd48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -779,10 +779,7 @@ struct addrinfo* freerdp_tcp_resolve_host(const char* hostname, int port, int ai
status = getaddrinfo(hostname, service, &hints, &result);
if (status)
{
freeaddrinfo(result);
return NULL;
}
return result;
}