aboutsummaryrefslogtreecommitdiff
path: root/src/port/getaddrinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/port/getaddrinfo.c')
-rw-r--r--src/port/getaddrinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/port/getaddrinfo.c b/src/port/getaddrinfo.c
index 807f5bd56d7..3d337067339 100644
--- a/src/port/getaddrinfo.c
+++ b/src/port/getaddrinfo.c
@@ -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;