diff options
author | Tom Gundersen <teg@jklm.no> | 2015-12-28 15:05:50 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-12-28 15:05:50 +0100 |
commit | 7fdfc8634e079559c9f8ca7f0bbbd660549d6118 (patch) | |
tree | 9dd72b708d610f3e78b597256cd3f194445f07b2 /src/resolve-host | |
parent | ad798a641a775e795dc32916d57a3d16cebc8a7d (diff) | |
parent | 160fbda9079d8edb5f9c4f6c650f23d27578f469 (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.c | 8 |
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)) |