]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
xtables: fix typo in add_entry for the IPv6 case
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 30 Jul 2013 09:28:45 +0000 (11:28 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 30 Dec 2013 22:50:40 +0000 (23:50 +0100)
It should pass zero, instead of the 'append' boolean.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
iptables/xtables.c

index 7a6509a7fe671345884938ce4ef7df462f27dfd3..3035546667edfe14cb1358db14705816b5da0be3 100644 (file)
@@ -442,7 +442,7 @@ add_entry(const char *chain,
                                       &d.mask.v6[j], sizeof(struct in6_addr));
                                if (append) {
                                        ret = nft_rule_append(h, chain, table,
-                                                             cs, append,
+                                                             cs, 0,
                                                              verbose);
                                } else {
                                        ret = nft_rule_insert(h, chain, table,