netfilter: nf_tables: add single table list for all families
[platform/kernel/linux-rpi.git] / net / netfilter / nft_nat.c
index ed548d0..1f36954 100644 (file)
@@ -142,7 +142,7 @@ static int nft_nat_init(const struct nft_ctx *ctx, const struct nft_expr *expr,
                return -EINVAL;
 
        family = ntohl(nla_get_be32(tb[NFTA_NAT_FAMILY]));
-       if (family != ctx->afi->family)
+       if (family != ctx->family)
                return -EOPNOTSUPP;
 
        switch (family) {