summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-12-21 16:20:49 +0100
committerLennart Poettering <lennart@poettering.net>2015-12-26 19:09:09 +0100
commit40667ebe74cc5c42bb38e94af06d89ee46dbe839 (patch)
tree660f75fbf1476080b8e25707eab3cb622d175edb
parent720e593603dbfc2d2b2a7b9f6e911ad7f09c61b2 (diff)
resolve-host: propagate error properly
-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) {