summaryrefslogtreecommitdiff
path: root/ares_gethostbyname.c
diff options
context:
space:
mode:
authorDominick Meglio <dcm5151@esu.edu>2005-04-08 15:41:31 +0000
committerDominick Meglio <dcm5151@esu.edu>2005-04-08 15:41:31 +0000
commit29d71bd49985ffc226bb55e0717600eb061ba699 (patch)
treeeb9b480517a7316b1d35fca47d65497fdad4d8f7 /ares_gethostbyname.c
parent2a0239bab1b7654d7c770011b8a035f6660ca4fe (diff)
downloadc-ares-29d71bd49985ffc226bb55e0717600eb061ba699.tar.gz
c-ares-29d71bd49985ffc226bb55e0717600eb061ba699.tar.bz2
c-ares-29d71bd49985ffc226bb55e0717600eb061ba699.zip
Made ares_gethostbyaddr support IPv6 by specifying AF_INET6 as the family
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;