]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
nft: fix syntax error in nft_parse_cmp()
authorGiuseppe Longo <giuseppelng@gmail.com>
Thu, 16 Oct 2014 14:29:52 +0000 (16:29 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sat, 18 Oct 2014 12:40:52 +0000 (14:40 +0200)
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>
iptables/nft-shared.c

index 70a28c83396c47895a5eaff37f494f0f4eeeaa41..00310a373c3aa7f41a7ded934a8e06dc070f1062 100644 (file)
@@ -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);
 }