Commit 212a1c7b authored by Bruce Momjian's avatar Bruce Momjian

Fix getaddrinfo() in pgport to use proper parameters, as detected by

Win32 buildfarm members.
parent c6978ecd
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment