summaryrefslogtreecommitdiffstats
path: root/contrib/librdns/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/librdns/util.c')
-rw-r--r--contrib/librdns/util.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/contrib/librdns/util.c b/contrib/librdns/util.c
index 401c6aad3..1cace2386 100644
--- a/contrib/librdns/util.c
+++ b/contrib/librdns/util.c
@@ -559,7 +559,7 @@ rdns_resolver_conf_process_line (struct rdns_resolver *resolver,
}
/* XXX: skip unknown resolv.conf lines */
- return true;
+ return false;
}
bool
@@ -569,6 +569,7 @@ rdns_resolver_parse_resolv_conf_cb (struct rdns_resolver *resolver,
FILE *in;
char buf[BUFSIZ];
char *p;
+ bool processed = false;
in = fopen (path, "r");
@@ -588,16 +589,14 @@ rdns_resolver_parse_resolv_conf_cb (struct rdns_resolver *resolver,
*p-- = '\0';
}
- if (!rdns_resolver_conf_process_line (resolver, buf, cb, ud)) {
- rdns_warn ("rdns_resolver_parse_resolv_conf: cannot parse line: %s", buf);
- fclose (in);
- return false;
+ if (rdns_resolver_conf_process_line (resolver, buf, cb, ud)) {
+ processed = true;
}
}
fclose (in);
- return true;
+ return processed;
}
bool