summaryrefslogtreecommitdiff
path: root/fake-getaddrinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'fake-getaddrinfo.c')
-rw-r--r--fake-getaddrinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fake-getaddrinfo.c b/fake-getaddrinfo.c
index c9bc03a35..73c122ed1 100644
--- a/fake-getaddrinfo.c
+++ b/fake-getaddrinfo.c
@@ -87,7 +87,7 @@ int getaddrinfo(const char *hostname, const char *servname,
87 return EAI_MEMORY; 87 return EAI_MEMORY;
88 } 88 }
89 89
90 if (inet_aton(hostname, &in) != -1) { 90 if (inet_aton(hostname, &in)) {
91 if (NULL != (*res = malloc_ai(port, in.s_addr))) 91 if (NULL != (*res = malloc_ai(port, in.s_addr)))
92 return 0; 92 return 0;
93 else 93 else