diff options
Diffstat (limited to 'ares/ares_gethostbyname.c')
-rw-r--r-- | ares/ares_gethostbyname.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ares/ares_gethostbyname.c b/ares/ares_gethostbyname.c index 8d77fdefe..2950d80c6 100644 --- a/ares/ares_gethostbyname.c +++ b/ares/ares_gethostbyname.c @@ -255,7 +255,7 @@ static int file_lookup(const char *name, struct hostent **host) if (!fp) return ARES_ENOTFOUND; - while ((status = ares__get_hostent(fp, host)) == ARES_SUCCESS) + while ((status = ares__get_hostent(fp, AF_INET, host)) == ARES_SUCCESS) { if (strcasecmp((*host)->h_name, name) == 0) break; |