From 690ea18fdd6f8bc12322a729a2f7c97d8e731c43 Mon Sep 17 00:00:00 2001 From: Tomasz Bursztyka Date: Tue, 11 Feb 2014 18:36:43 +0200 Subject: nft: A builtin chain might be created when restoring nft_chain_set() is directly used in xtables-restore.c, however at that point no builtin chains have been created yet thus the need to request to build it relevantly. Signed-off-by: Tomasz Bursztyka Signed-off-by: Pablo Neira Ayuso --- iptables/nft.c | 1 + 1 file changed, 1 insertion(+) (limited to 'iptables/nft.c') diff --git a/iptables/nft.c b/iptables/nft.c index 36ac69cc..501c6d86 100644 --- a/iptables/nft.c +++ b/iptables/nft.c @@ -744,6 +744,7 @@ __nft_chain_set(struct nft_handle *h, const char *table, } nlh = nft_chain_nlmsg_build_hdr(buf, NFT_MSG_NEWCHAIN, h->family, + h->restore ? NLM_F_ACK|NLM_F_CREATE : NLM_F_ACK, h->seq); nft_chain_nlmsg_build_payload(nlh, c); -- cgit v1.2.3