From 9c143e4444c290a71a9b5e5b645992531394a58c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 28 Nov 2007 15:18:27 +0000 Subject: the gethostbyname fix applied here as well --- ares_gethostbyaddr.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ares_gethostbyaddr.c') 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; -- cgit v1.2.3