summaryrefslogtreecommitdiff
path: root/src/resolve-host/resolve-host.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/resolve-host/resolve-host.c')
-rw-r--r--src/resolve-host/resolve-host.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/resolve-host/resolve-host.c b/src/resolve-host/resolve-host.c
index 3e4b52a3a9..3f3563850b 100644
--- a/src/resolve-host/resolve-host.c
+++ b/src/resolve-host/resolve-host.c
@@ -399,10 +399,8 @@ static int resolve_record(sd_bus *bus, const char *name) {
return log_oom();
r = dns_packet_read_rr(p, &rr, NULL, NULL);
- if (r < 0) {
- log_error("Failed to parse RR.");
- return r;
- }
+ if (r < 0)
+ return log_error_errno(r, "Failed to parse RR.");
r = dns_resource_record_to_string(rr, &s);
if (r < 0) {