Merge pull request #6034 from akallabeth/addrinfo
Fix #6033: freeaddrinfo must not be called with NULL arguments.
This commit is contained in:
commit
b52cc2cd48
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user