From: Yu Watanabe Date: Wed, 15 Jun 2022 03:53:32 +0000 (+0900) Subject: firewall-util: drop unnecessary string attribute X-Git-Tag: v252-rc1~594^2~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=35cca046cf65be01db33c4a17076491c1c7682a3;p=thirdparty%2Fsystemd.git firewall-util: drop unnecessary string attribute As `sd_netlink_message_open_container_union()` also appends the string attribute. --- diff --git a/src/shared/firewall-util-nft.c b/src/shared/firewall-util-nft.c index e04304838dc..0a8fc08f99c 100644 --- a/src/shared/firewall-util-nft.c +++ b/src/shared/firewall-util-nft.c @@ -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); }