diff options
author | Phil Sutter <phil@nwl.cc> | 2018-08-02 17:05:10 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-08-04 14:12:44 +0200 |
commit | c2895eaf7a9d604c4aa10848ad46cdde48a00357 (patch) | |
tree | ef50d71adc485c561575e001d2eb6c6d33cbf3f5 | |
parent | 89d344381c81bd1d5f29b498844f20280200c786 (diff) |
xtables: Free chains in NFT_COMPAT_CHAIN_USER_DEL jobs
These always have to be freed because nft_chain_user_del() removes them
from the cache so they are not freed when the chain cache is flushed.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
-rw-r--r-- | iptables/nft.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/nft.c b/iptables/nft.c index f2d6ea13..26df1287 100644 --- a/iptables/nft.c +++ b/iptables/nft.c @@ -2447,8 +2447,8 @@ static void batch_obj_del(struct nft_handle *h, struct obj_update *o) break; case NFT_COMPAT_CHAIN_ADD: case NFT_COMPAT_CHAIN_USER_ADD: - case NFT_COMPAT_CHAIN_USER_DEL: break; + case NFT_COMPAT_CHAIN_USER_DEL: case NFT_COMPAT_CHAIN_USER_FLUSH: case NFT_COMPAT_CHAIN_UPDATE: case NFT_COMPAT_CHAIN_RENAME: |