From: Lennart Poettering Date: Thu, 10 Nov 2022 12:30:02 +0000 (+0100) Subject: resolvectl: fail properly if we can't append to table X-Git-Tag: v253-rc1~552^2~2 X-Git-Url: http://git-history.diyao.me/?a=commitdiff_plain;h=858409499ca7e65d4c694f7c6ae4077c261951d6;p=systemd%2F.git resolvectl: fail properly if we can't append to table --- 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)