summaryrefslogtreecommitdiff
path: root/src/resolve
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2022-11-10 13:30:02 +0100
committerLennart Poettering <lennart@poettering.net>2022-11-10 23:09:56 +0100
commit858409499ca7e65d4c694f7c6ae4077c261951d6 (patch)
treeda55d58f213f16ce000ca194e20391a94ff9d6ea /src/resolve
parentc6bf9dff3a6e6a071b55755b57f8d44bbefe9cca (diff)
downloadsystemd-858409499ca7e65d4c694f7c6ae4077c261951d6.tar.gz
resolvectl: fail properly if we can't append to table
Diffstat (limited to 'src/resolve')
-rw-r--r--src/resolve/resolvectl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/resolvectl.c b/src/resolve/resolvectl.c
index dd0a8e121e..ffeac94176 100644
--- a/src/resolve/resolvectl.c
+++ b/src/resolve/resolvectl.c
@@ -1156,7 +1156,7 @@ static int show_statistics(int argc, char **argv, void *userdata) {
TABLE_STRING, "Indeterminate:",
TABLE_UINT64, n_dnssec_indeterminate);
if (r < 0)
- table_log_add_error(r);
+ return table_log_add_error(r);
r = table_print(table, NULL);
if (r < 0)