diff options
author | Mike Crowe <mac@mcrowe.com> | 2010-09-23 18:46:34 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-09-30 00:23:08 +0200 |
commit | fa0dd472cd647f94d8d1937b44ec87f4964c0b08 (patch) | |
tree | 070072d8c87f6401efa444b2b510ca6008e028a4 /ares_search.c | |
parent | 293cd3170019015b6ce40f9fa5efc45bd89dad1a (diff) | |
download | c-ares-fa0dd472cd647f94d8d1937b44ec87f4964c0b08.tar.gz c-ares-fa0dd472cd647f94d8d1937b44ec87f4964c0b08.tar.bz2 c-ares-fa0dd472cd647f94d8d1937b44ec87f4964c0b08.zip |
Fix lookup with HOSTALIASES set.
ares__read_line returns ARES_EOF when it reaches the end of the
file. This will happen every time when reading to the end of the
HOSTALIASES file. Unfortunately single_domain treats this error as
being fatal.
Signed-off-by: Mike Crowe <mac@mcrowe.com>
Diffstat (limited to 'ares_search.c')
-rw-r--r-- | 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 |