]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
rule: removed duplicate member initializer.
authorJeremy Sowden <jeremy@azazel.net>
Fri, 19 Jul 2019 11:10:10 +0000 (12:10 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 22 Jul 2019 21:31:20 +0000 (23:31 +0200)
Initialization of a netlink_ctx included two initializers for .nft.
Removed one of them.

Fixes: 2dc07bcd7eaa ("src: pass struct nft_ctx through struct netlink_ctx")
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Acked-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/rule.c

index b957b4571249e28bacf19d8eba94b7d1a093a899..0ebe91e79a03815dad0d3c63a3b07685493473fb 100644 (file)
@@ -240,7 +240,6 @@ int cache_update(struct nft_ctx *nft, unsigned int flags, struct list_head *msgs
                .list           = LIST_HEAD_INIT(ctx.list),
                .nft            = nft,
                .msgs           = msgs,
-               .nft            = nft,
        };
        struct nft_cache *cache = &nft->cache;
        uint32_t genid, genid_stop;