projects
/
platform
/
upstream
/
c-ares.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
293cd31
)
Fix lookup with HOSTALIASES set.
author
Mike Crowe
<mac@mcrowe.com>
Thu, 23 Sep 2010 16:46:34 +0000
(18:46 +0200)
committer
Daniel Stenberg
<daniel@haxx.se>
Wed, 29 Sep 2010 22:23:08 +0000
(
00:23
+0200)
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>
ares_search.c
patch
|
blob
|
history
diff --git
a/ares_search.c
b/ares_search.c
index
aa233dd
..
608cb15
100644
(file)
--- 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