resolve-host: log RR parsing errors

This commit is contained in:
Lennart Poettering 2015-12-27 22:22:39 +01:00
parent e0240c64b7
commit 502a798599
1 changed files with 3 additions and 5 deletions

View File

@ -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))