32 lines
990 B
Diff
32 lines
990 B
Diff
From c2895eaf7a9d604c4aa10848ad46cdde48a00357 Mon Sep 17 00:00:00 2001
|
|
From: Phil Sutter <phil@nwl.cc>
|
|
Date: Thu, 2 Aug 2018 17:05:10 +0200
|
|
Subject: 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>
|
|
---
|
|
iptables/nft.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
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:
|
|
--
|
|
cgit v1.2.1
|
|
|