]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
nft: Drop pointless nft_xt_builtin_init() call
authorPhil Sutter <phil@nwl.cc>
Fri, 10 Jul 2020 19:12:34 +0000 (21:12 +0200)
committerPhil Sutter <phil@nwl.cc>
Fri, 24 Jul 2020 17:16:05 +0000 (19:16 +0200)
When renaming a chain, either everything is in place already or the
command will bail anyway. So just drop this superfluous call.

Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/nft.c

index 52ee809b6bc079137bc3a22c7855d0ba10682a98..e3811f5fb20b0779c1f44812d511704a0a8f5322 100644 (file)
@@ -1937,8 +1937,6 @@ int nft_chain_user_rename(struct nft_handle *h,const char *chain,
                return 0;
        }
 
-       nft_xt_builtin_init(h, table);
-
        /* Config load changed errno. Ensure genuine info for our callers. */
        errno = 0;