]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
firewall-util: drop unnecessary string attribute
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 15 Jun 2022 03:53:32 +0000 (12:53 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 23 Jul 2022 14:52:42 +0000 (23:52 +0900)
As `sd_netlink_message_open_container_union()` also appends the string
attribute.

src/shared/firewall-util-nft.c

index e04304838dc85764fa8f423392121c8576ab8e7f..0a8fc08f99cd4509d89c77d850bf9c8d8b0877cc 100644 (file)
@@ -84,10 +84,6 @@ static int nfnl_add_open_expr_container(sd_netlink_message *m, const char *name)
         if (r < 0)
                 return r;
 
-        r = sd_netlink_message_append_string(m, NFTA_EXPR_NAME, name);
-        if (r < 0)
-                return r;
-
         return sd_netlink_message_open_container_union(m, NFTA_EXPR_DATA, name);
 }