summaryrefslogtreecommitdiffstats
path: root/iptables/nft-shared.c
diff options
context:
space:
mode:
authorGiuseppe Longo <giuseppelng@gmail.com>2014-10-16 16:29:52 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2014-10-18 14:40:52 +0200
commit84f6bf6345f59d442fd62c47abb03089eb9b2134 (patch)
treebf61845c9ee5f693071c65a69b66de26d33eab72 /iptables/nft-shared.c
parenta491c610a1994e7a51c04035314dbc8cef250808 (diff)
nft: fix syntax error in nft_parse_cmp()
This fixes a syntax error, remove ; in an if statement Signed-off-by: Giuseppe Longo <giuseppelng@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/nft-shared.c')
-rw-r--r--iptables/nft-shared.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/nft-shared.c b/iptables/nft-shared.c
index 70a28c83..00310a37 100644
--- a/iptables/nft-shared.c
+++ b/iptables/nft-shared.c
@@ -440,7 +440,7 @@ void nft_parse_cmp(struct nft_xt_ctx *ctx, struct nft_rule_expr *e)
if (ctx->flags & NFT_XT_CTX_META)
ops->parse_meta(ctx, e, data);
/* bitwise context is interpreted from payload */
- if (ctx->flags & NFT_XT_CTX_PAYLOAD);
+ if (ctx->flags & NFT_XT_CTX_PAYLOAD)
ops->parse_payload(ctx, e, data);
}