projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
649f7b7
)
the gethostbyname fix applied here as well
author
Daniel Stenberg
<daniel@haxx.se>
Wed, 28 Nov 2007 15:18:27 +0000
(15:18 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Wed, 28 Nov 2007 15:18:27 +0000
(15:18 +0000)
ares/ares_gethostbyaddr.c
patch
|
blob
|
history
diff --git
a/ares/ares_gethostbyaddr.c
b/ares/ares_gethostbyaddr.c
index
b3abc09
..
0617c0a
100644
(file)
--- 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;