]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
nft-ipv46: replace offset var with ctx->payload.offset
authorGiuseppe Longo <giuseppelng@gmail.com>
Thu, 16 Oct 2014 14:29:53 +0000 (16:29 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sat, 18 Oct 2014 12:40:58 +0000 (14:40 +0200)
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 <giuseppelng@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
iptables/nft-ipv4.c
iptables/nft-ipv6.c

index eedcb509a97f132ef524037d1a03f54b37521b4f..a2c580600d426a2b3c98195c27365235677edd14 100644 (file)
@@ -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;
        }
 }
index 2e50627f23812e607efed7327b080ffb6128b0a8..5489398ad05cfbe98b122eb0665d605ae05219e4 100644 (file)
@@ -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;
        }
 }