summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-12-27 22:22:39 +0100
committerLennart Poettering <lennart@poettering.net>2015-12-28 14:46:39 +0100
commit502a7985993758e0bc64778e20ebb7d3941a6f55 (patch)
treeb7040c80842b00d8d59d72f70f948b7eeff6b3f3
parente0240c64b76ba8f0c9219feb23a5783f23100216 (diff)
resolve-host: log RR parsing errors
-rw-r--r--src/resolve-host/resolve-host.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/resolve-host/resolve-host.c b/src/resolve-host/resolve-host.c
index 67c93c2618..793c560373 100644
--- a/src/resolve-host/resolve-host.c
+++ b/src/resolve-host/resolve-host.c
@@ -408,13 +408,11 @@ static int resolve_record(sd_bus *bus, const char *name) {
r = dns_packet_read_rr(p, &rr, NULL, NULL);
if (r < 0)
- return log_error_errno(r, "Failed to parse RR.");
+ return log_error_errno(r, "Failed to parse RR: %m");
s = dns_resource_record_to_string(rr);
- if (!s) {
- log_error("Failed to format RR.");
- return -ENOMEM;
- }
+ if (!s)
+ return log_oom();
ifname[0] = 0;
if (ifindex > 0 && !if_indextoname(ifindex, ifname))