summaryrefslogtreecommitdiff
path: root/ares_gethostbyaddr.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-11-28 15:18:27 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-11-28 15:18:27 +0000
commit9c143e4444c290a71a9b5e5b645992531394a58c (patch)
treee5b0445a9550583945b1c4660beef55af887a078 /ares_gethostbyaddr.c
parentba5bd647f97af8746428de37ef0ef61e2e6f275f (diff)
downloadc-ares-9c143e4444c290a71a9b5e5b645992531394a58c.tar.gz
c-ares-9c143e4444c290a71a9b5e5b645992531394a58c.tar.bz2
c-ares-9c143e4444c290a71a9b5e5b645992531394a58c.zip
the gethostbyname fix applied here as well
Diffstat (limited to 'ares_gethostbyaddr.c')
-rw-r--r--ares_gethostbyaddr.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ares_gethostbyaddr.c b/ares_gethostbyaddr.c
index b3abc09..0617c0a 100644
--- a/ares_gethostbyaddr.c
+++ b/ares_gethostbyaddr.c
@@ -142,7 +142,11 @@ static void next_lookup(struct addr_query *aquery)
return;
case 'f':
status = file_lookup(&aquery->addr, aquery->family, &host);
- if (status != ARES_ENOTFOUND)
+
+ /* this status check below previously checked for !ARES_ENOTFOUND,
+ but we should not assume that this single error code is the one
+ that can occur, as that is in fact no longer the case */
+ if (status == ARES_SUCCESS)
{
end_aquery(aquery, status, host);
return;