mirror of
https://github.com/curl/curl.git
synced 2026-07-22 22:47:17 +03:00
the gethostbyname fix applied here as well
This commit is contained in:
parent
649f7b7fd3
commit
800a72878a
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue