summaryrefslogtreecommitdiffstats
path: root/examples/nft-chain-xml-add.c
diff options
context:
space:
mode:
authorArturo Borrero <arturo.borrero.glez@gmail.com>2013-06-05 23:37:18 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2013-06-18 17:38:18 +0200
commit3aa8a65e0619890c38cc30890a8e4423aa71bf7c (patch)
tree3563bac8ea2ee0d131700decd0c1597c972a1c01 /examples/nft-chain-xml-add.c
parentfd88b61e5cf16a96d1eec67c3cc0c93e007622ed (diff)
examples: unset chain & rule handle
Use _unset functions to delete handle so test don't fail. Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'examples/nft-chain-xml-add.c')
-rw-r--r--examples/nft-chain-xml-add.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/nft-chain-xml-add.c b/examples/nft-chain-xml-add.c
index c8b0fdc..80a513d 100644
--- a/examples/nft-chain-xml-add.c
+++ b/examples/nft-chain-xml-add.c
@@ -69,6 +69,7 @@ int main(int argc, char *argv[])
nft_chain_snprintf(reprint, sizeof(reprint), c, NFT_CHAIN_O_XML, 0);
printf("Parsed:\n%s\n", reprint);
+ nft_chain_attr_unset(c, NFT_CHAIN_ATTR_HANDLE);
family = (uint16_t)nft_chain_attr_get_u32(c, NFT_CHAIN_ATTR_FAMILY);
seq = time(NULL);