aboutsummaryrefslogtreecommitdiff
path: root/ares/ares_gethostbyaddr.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-02-19 02:03:58 +0000
committerYang Tse <yangsita@gmail.com>2007-02-19 02:03:58 +0000
commit31e598d2f39e2d4afc1e6f0a0b960f378e86da31 (patch)
treed777ed14663ee680c3a8c3baf63f00ce850558a8 /ares/ares_gethostbyaddr.c
parentcbf58d88d0a84042d9dd8a7a6b1644f15242cf02 (diff)
add debug messages for initialization failures
Diffstat (limited to 'ares/ares_gethostbyaddr.c')
-rw-r--r--ares/ares_gethostbyaddr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ares/ares_gethostbyaddr.c b/ares/ares_gethostbyaddr.c
index 0faeaec2a..db0ac46b3 100644
--- a/ares/ares_gethostbyaddr.c
+++ b/ares/ares_gethostbyaddr.c
@@ -224,6 +224,7 @@ static int file_lookup(union ares_addr *addr, int family, struct hostent **host)
switch(error)
{
case ENOENT:
+ case ESRCH:
return ARES_ENOTFOUND;
default:
DEBUGF(fprintf(stderr, "fopen() failed with error: %d %s\n",