Created
August 16, 2015 17:44
-
-
Save poolpOrg/0a6b4924c82ec49b5cee to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/getaddrinfo_async.c b/src/getaddrinfo_async.c | |
| index 7937df2..c586eaa 100644 | |
| --- a/src/getaddrinfo_async.c | |
| +++ b/src/getaddrinfo_async.c | |
| @@ -882,7 +882,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 (htonl(sinp->sin_addr.s_addr) == INADDR_LOOPBACK) | |
| continue; | |
| as->as.ai.flags &= ~ASYNC_NO_INET; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment