summaryrefslogtreecommitdiff
path: root/src/resolve-host/resolve-host.c
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2015-12-27 23:57:58 +0100
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2015-12-28 00:05:17 +0100
commitf770083430d03d7fe8b5771b6ef269802735e914 (patch)
treeb495d4ec1ccc9b3f8b443b01e99349eccbe61e55 /src/resolve-host/resolve-host.c
parentc03cba007ade41464bb10777a5389f699d568612 (diff)
resolve-host: add error checking
Diffstat (limited to 'src/resolve-host/resolve-host.c')
-rw-r--r--src/resolve-host/resolve-host.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resolve-host/resolve-host.c b/src/resolve-host/resolve-host.c
index 67c93c2618..fa0dffc03c 100644
--- a/src/resolve-host/resolve-host.c
+++ b/src/resolve-host/resolve-host.c
@@ -690,6 +690,8 @@ static int show_statistics(sd_bus *bus) {
&error,
&reply,
"(ttt)");
+ if (r < 0)
+ return log_error_errno(r, "Failed to get cache statistics: %s", bus_error_message(&error, r));
r = sd_bus_message_read(reply, "(ttt)",
&cache_size,
@@ -718,6 +720,8 @@ static int show_statistics(sd_bus *bus) {
&error,
&reply,
"(tttt)");
+ if (r < 0)
+ return log_error_errno(r, "Failed to get DNSSEC statistics: %s", bus_error_message(&error, r));
r = sd_bus_message_read(reply, "(tttt)",
&n_dnssec_secure,