diff options
author | Giuseppe Longo <giuseppelng@gmail.com> | 2013-07-26 13:05:19 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-12-30 23:50:40 +0100 |
commit | c0c3cf9cf8065ade1d525da417e08d0f8d6bc359 (patch) | |
tree | 50b0a540c7ee1bfcb2ea7b3ffbdaebfad2d3b47a /iptables | |
parent | 85512f09680a798ebe92e96ad62eeae863fbc791 (diff) |
nft: fix family operation lookup
xtables-restore -6 was using the IPv4 family, instead of IPv6
as it should be.
Signed-off-by: Giuseppe Longo <giuseppelng@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables')
-rw-r--r-- | iptables/xtables.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/xtables.c b/iptables/xtables.c index 30355466..946f04d6 100644 --- a/iptables/xtables.c +++ b/iptables/xtables.c @@ -1110,7 +1110,7 @@ int do_commandx(struct nft_handle *h, int argc, char *argv[], char **table) if (h->family == AF_UNSPEC) h->family = args.family; - h->ops = nft_family_ops_lookup(args.family); + h->ops = nft_family_ops_lookup(h->family); if (h->ops == NULL) xtables_error(PARAMETER_PROBLEM, "Unknown family"); |