Archive Index
This month's Index
|
Subject: [PATCH] Fix lookup with HOSTALIASES set.
[PATCH] Fix lookup with HOSTALIASES set.
From: Mike Crowe <mac_at_mcrowe.com>
Date: Thu, 23 Sep 2010 17:46:34 +0100
ares__read_line returns ARES_EOF when it reaches the end of the
Signed-off-by: Mike Crowe <mac_at_mcrowe.com>
---
ares_search.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ares_search.c b/ares_search.c
index aa233dd..608cb15 100644
--- a/ares_search.c
+++ b/ares_search.c
@@ -287,7 +287,7 @@ static int single_domain(ares_channel channel, const char *name, char **s)
}
free(line);
fclose(fp);
- if (status != ARES_SUCCESS)
+ if (status != ARES_SUCCESS && status != ARES_EOF)
return status;
}
else
--
1.5.6.5
Received on 2010-09-23
|