summaryrefslogtreecommitdiff
path: root/fake-getaddrinfo.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-07-11 12:15:54 +1000
committerDamien Miller <djm@mindrot.org>2000-07-11 12:15:54 +1000
commit7a0e5dc9811b6d33aa3f0bfe26af9a1af2884c8c (patch)
tree0c2f54e48a21fb39ca45f3a44ab8800085567687 /fake-getaddrinfo.c
parent99bca607dc48d9a96285cfc224cd9e883b246151 (diff)
- (djm) Fix broken inet_ntoa check and ut_user/ut_name confusion, report
from Jim Watt <jimw@peisj.pebio.com>
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