summaryrefslogtreecommitdiff
path: root/src/resolve-host
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-12-28 15:05:50 +0100
committerTom Gundersen <teg@jklm.no>2015-12-28 15:05:50 +0100
commit7fdfc8634e079559c9f8ca7f0bbbd660549d6118 (patch)
tree9dd72b708d610f3e78b597256cd3f194445f07b2 /src/resolve-host
parentad798a641a775e795dc32916d57a3d16cebc8a7d (diff)
parent160fbda9079d8edb5f9c4f6c650f23d27578f469 (diff)
Merge pull request #2232 from poettering/dnssec8
Eigth DNSSEC patch set
Diffstat (limited to 'src/resolve-host')
-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))