diff options
author | Phil Sutter <phil@nwl.cc> | 2020-05-05 19:36:13 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2020-05-11 14:28:29 +0200 |
commit | 381b5569eb256e13346cff902d6ceed42cb441ad (patch) | |
tree | 8ee3df5933b5ca75799eb83376b9e0df690a4cc4 /iptables/nft-ipv6.c | |
parent | 7db4333dc0b6cd8e943fab78d6dab40ff9f4512e (diff) |
nft: Use clear_cs() instead of open coding
In a few places, initialized struct iptables_command_state was not fully
deinitialized. Change them to call nft_clear_iptables_command_state()
which does it properly.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/nft-ipv6.c')
-rw-r--r-- | iptables/nft-ipv6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/nft-ipv6.c b/iptables/nft-ipv6.c index d01491bf..76f2613d 100644 --- a/iptables/nft-ipv6.c +++ b/iptables/nft-ipv6.c @@ -217,7 +217,7 @@ static void nft_ipv6_print_rule(struct nft_handle *h, struct nftnl_rule *r, if (!(format & FMT_NONEWLINE)) fputc('\n', stdout); - xtables_rule_matches_free(&cs.matches); + nft_clear_iptables_command_state(&cs); } static void save_ipv6_addr(char letter, const struct in6_addr *addr, |