summaryrefslogtreecommitdiff
path: root/ares_gethostbyname.c
diff options
context:
space:
mode:
Diffstat (limited to 'ares_gethostbyname.c')
-rw-r--r--ares_gethostbyname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ares_gethostbyname.c b/ares_gethostbyname.c
index 8d77fde..2950d80 100644
--- a/ares_gethostbyname.c
+++ b/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;