]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolvectl: fail properly if we can't append to table
authorLennart Poettering <lennart@poettering.net>
Thu, 10 Nov 2022 12:30:02 +0000 (13:30 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 10 Nov 2022 22:09:56 +0000 (23:09 +0100)
src/resolve/resolvectl.c

index dd0a8e121e256e39125c186d4f6c8928be21a340..ffeac9417622aa6be6a823c867c6c0420524211c 100644 (file)
@@ -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)