summaryrefslogtreecommitdiff
path: root/ext/socket/getaddrinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/socket/getaddrinfo.c')
-rw-r--r--ext/socket/getaddrinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/getaddrinfo.c b/ext/socket/getaddrinfo.c
index 64d29b17ab..cdc3de52e4 100644
--- a/ext/socket/getaddrinfo.c
+++ b/ext/socket/getaddrinfo.c
@@ -221,7 +221,7 @@ inet_pton(af, hostname, pton)
struct in_addr in;
#ifdef HAVE_INET_ATON
- if (!inet_aton(hostname, &in.s_addr))
+ if (!inet_aton(hostname, &in))
return 0;
#else
int d1, d2, d3, d4;