summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2015-08-16 20:37:26 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2015-08-16 20:37:26 +0000
commitd337a7593016a53c0bf06224a70f9624e7d9a433 (patch)
tree018b4f780681b2fa0891044d05e49f6be9bce065
parentbadf5a8293805cac4ce9fd80832f40e837cbdab2 (diff)
Fix test against INADDR_LOOPBACK
ok gilles@
-rw-r--r--lib/libc/asr/getaddrinfo_async.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/asr/getaddrinfo_async.c b/lib/libc/asr/getaddrinfo_async.c
index 82991a160d9..5974bf39b63 100644
--- a/lib/libc/asr/getaddrinfo_async.c
+++ b/lib/libc/asr/getaddrinfo_async.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getaddrinfo_async.c,v 1.40 2015/05/29 08:49:37 eric Exp $ */
+/* $OpenBSD: getaddrinfo_async.c,v 1.41 2015/08/16 20:37:25 jca Exp $ */
/*
* Copyright (c) 2012 Eric Faurot <eric@openbsd.org>
*
@@ -854,7 +854,7 @@ addrconfig_setup(struct asr_query *as)
case PF_INET:
sinp = (struct sockaddr_in *)ifa->ifa_addr;
- if (sinp->sin_addr.s_addr == INADDR_LOOPBACK)
+ if (sinp->sin_addr.s_addr == htonl(INADDR_LOOPBACK))
continue;
as->as.ai.flags &= ~ASYNC_NO_INET;