the gethostbyname fix applied here as well

pull/1/head
Daniel Stenberg 17 years ago
parent ba5bd647f9
commit 9c143e4444
  1. 6
      ares_gethostbyaddr.c

@ -142,7 +142,11 @@ static void next_lookup(struct addr_query *aquery)
return; return;
case 'f': case 'f':
status = file_lookup(&aquery->addr, aquery->family, &host); 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); end_aquery(aquery, status, host);
return; return;

Loading…
Cancel
Save