From 4182478977685b0cbe71eb3d75f004f23a775d6c Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Fri, 10 Jan 2014 14:02:22 +0100 Subject: nft: fix inconsistent data type in NFT_EXPR_CMP_OP and NFT_EXPR_META_KEY We have to use uint32_t instead uint8_t to adapt this to the libnftables changes. Signed-off-by: Pablo Neira Ayuso --- iptables/nft-ipv4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'iptables/nft-ipv4.c') diff --git a/iptables/nft-ipv4.c b/iptables/nft-ipv4.c index 1afe8b66..3aeb8a72 100644 --- a/iptables/nft-ipv4.c +++ b/iptables/nft-ipv4.c @@ -131,7 +131,7 @@ static void get_frag(struct nft_rule_expr_iter *iter, bool *inv) return; } - op = nft_rule_expr_get_u8(e, NFT_EXPR_CMP_OP); + op = nft_rule_expr_get_u32(e, NFT_EXPR_CMP_OP); if (op == NFT_CMP_EQ) *inv = true; else -- cgit v1.2.3