From: Giuseppe Longo Date: Thu, 16 Oct 2014 14:29:53 +0000 (+0200) Subject: nft-ipv46: replace offset var with ctx->payload.offset X-Git-Tag: v1.6.0~68 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2dde9356888733a98867a4e769609f9f59a3bf65;p=thirdparty%2Fiptables.git nft-ipv46: replace offset var with ctx->payload.offset The offset variable (undefined) is passed to DEBUGP function, so you get a compilation error if you try to build iptables with debug enabled Signed-off-by: Giuseppe Longo Signed-off-by: Pablo Neira Ayuso --- diff --git a/iptables/nft-ipv4.c b/iptables/nft-ipv4.c index eedcb509..a2c58060 100644 --- a/iptables/nft-ipv4.c +++ b/iptables/nft-ipv4.c @@ -205,7 +205,7 @@ static void nft_ipv4_parse_payload(struct nft_xt_ctx *ctx, cs->fw.ip.invflags |= IPT_INV_FRAG; break; default: - DEBUGP("unknown payload offset %d\n", offset); + DEBUGP("unknown payload offset %d\n", ctx->payload.offset); break; } } diff --git a/iptables/nft-ipv6.c b/iptables/nft-ipv6.c index 2e50627f..5489398a 100644 --- a/iptables/nft-ipv6.c +++ b/iptables/nft-ipv6.c @@ -142,7 +142,7 @@ static void nft_ipv6_parse_payload(struct nft_xt_ctx *ctx, if (inv) cs->fw6.ipv6.invflags |= IPT_INV_PROTO; default: - DEBUGP("unknown payload offset %d\n", offset); + DEBUGP("unknown payload offset %d\n", ctx->payload.offset); break; } }