summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ares_init.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/ares_init.c b/ares_init.c
index a10f7f3..d2f4a72 100644
--- a/ares_init.c
+++ b/ares_init.c
@@ -899,7 +899,8 @@ DhcpNameServer
while ((status = ares__read_line(fp, &line, &linesize)) == ARES_SUCCESS)
{
if ((p = try_config(line, "hosts:", '\0')) && !channel->lookups)
- status = config_lookup(channel, p, "dns", "files");
+ /* ignore errors */
+ (void)config_lookup(channel, p, "dns", "files");
}
fclose(fp);
}
@@ -926,7 +927,8 @@ DhcpNameServer
while ((status = ares__read_line(fp, &line, &linesize)) == ARES_SUCCESS)
{
if ((p = try_config(line, "order", '\0')) && !channel->lookups)
- status = config_lookup(channel, p, "bind", "hosts");
+ /* ignore errors */
+ (void)config_lookup(channel, p, "bind", "hosts");
}
fclose(fp);
}
@@ -953,7 +955,8 @@ DhcpNameServer
while ((status = ares__read_line(fp, &line, &linesize)) == ARES_SUCCESS)
{
if ((p = try_config(line, "hosts=", '\0')) && !channel->lookups)
- status = config_lookup(channel, p, "bind", "local");
+ /* ignore errors */
+ (void)config_lookup(channel, p, "bind", "local");
}
fclose(fp);
}