]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolvectl: add missing error check
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Thu, 28 Aug 2025 12:09:14 +0000 (14:09 +0200)
committerAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Thu, 28 Aug 2025 12:09:14 +0000 (14:09 +0200)
Follow-up for 45817e9245d48ad8807de2b1604bc64b9dd39a1d

src/resolve/resolvectl.c

index a5e8696d89ac5f8ec1e629e30a6cc5debd9b4e07..7f9cc33436d2583e9221c0c99a1eef0ec2c46a2d 100644 (file)
@@ -2338,6 +2338,8 @@ static int status_delegate_one(sd_bus *bus, const char *id, StatusMode mode, boo
                            TABLE_FIELD, "Default Route",
                            TABLE_SET_MINIMUM_WIDTH, 19,
                            TABLE_BOOLEAN, delegate_info.default_route);
+        if (r < 0)
+                return table_log_add_error(r);
 
         r = table_print(table, NULL);
         if (r < 0)