diff options
author | Daniel Stenberg <daniel@haxx.se> | 2007-11-28 15:18:27 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2007-11-28 15:18:27 +0000 |
commit | 800a72878a5b66e10f3f73ee0ddd0646ae3874db (patch) | |
tree | a3b5c40072a46912dc9f6b1f9a9b73c788afa0be | |
parent | 649f7b7fd31896639c7758ec18c74b7e825473ce (diff) |
the gethostbyname fix applied here as well
-rw-r--r-- | ares/ares_gethostbyaddr.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ares/ares_gethostbyaddr.c b/ares/ares_gethostbyaddr.c index b3abc093e..0617c0a59 100644 --- a/ares/ares_gethostbyaddr.c +++ b/ares/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; |