mirror of
https://github.com/postgres/postgres.git
synced 2025-07-24 14:22:24 +03:00
Fix getaddrinfo() in pgport to use proper parameters, as detected by
Win32 buildfarm members.
This commit is contained in:
@ -390,7 +390,7 @@ getnameinfo(const struct sockaddr * sa, int salen,
|
||||
{
|
||||
if (sa->sa_family == AF_INET)
|
||||
{
|
||||
if (inet_net_ntop(AF_INET, ((struct sockaddr_in *) sa)->sin_addr,
|
||||
if (inet_net_ntop(AF_INET, &((struct sockaddr_in *) sa)->sin_addr,
|
||||
sa->sa_family == AF_INET ? 32 : 128,
|
||||
node, nodelen) == NULL)
|
||||
return EAI_MEMORY;
|
||||
|
Reference in New Issue
Block a user