diff options
-rw-r--r-- | lib/libc/asr/getaddrinfo_async.c | 4 |
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; |