resolve-host: add error checking

This commit is contained in:
Thomas Hindoe Paaboel Andersen
2015-12-28 00:05:17 +01:00
parent c03cba007a
commit f770083430
+4
View File
@@ -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,