Skip to content
Snippets Groups Projects
Commit 800a7287 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

the gethostbyname fix applied here as well

parent 649f7b7f
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment