summaryrefslogtreecommitdiffstats
path: root/iptables/nft-bridge.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2022-10-07 22:16:43 +0200
committerPhil Sutter <phil@nwl.cc>2022-10-07 23:03:55 +0200
commit610ed9c8c733e3b40787e975cdcb957981b4a6c5 (patch)
treefd2670e145602b7e4ee62aee83dede80e7eaa03f /iptables/nft-bridge.c
parent97bf4e68fc0794adba3243fd96f40f4568e7216f (diff)
nft: Fix compile with -DDEBUG
Conversion from 'ctx' to 'reg' missed some of the DEBUGP() calls. Fixes: f315af1cf8871 ("nft: track each register individually") Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/nft-bridge.c')
-rw-r--r--iptables/nft-bridge.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/iptables/nft-bridge.c b/iptables/nft-bridge.c
index d1385cc3..749cbc6f 100644
--- a/iptables/nft-bridge.c
+++ b/iptables/nft-bridge.c
@@ -365,8 +365,8 @@ static int lookup_analyze_payloads(struct nft_xt_ctx *ctx,
reg->payload.len);
if (val2 < 0) {
DEBUGP("unknown payload base/offset/len %d/%d/%d\n",
- ctx->payload.base, ctx->payload.offset,
- ctx->payload.len);
+ reg->payload.base, reg->payload.offset,
+ reg->payload.len);
return -1;
} else if (val != val2) {
DEBUGP("mismatching payload match offsets\n");
@@ -379,8 +379,8 @@ static int lookup_analyze_payloads(struct nft_xt_ctx *ctx,
reg->payload.len);
if (val < 0) {
DEBUGP("unknown payload base/offset/len %d/%d/%d\n",
- ctx->payload.base, ctx->payload.offset,
- ctx->payload.len);
+ reg->payload.base, reg->payload.offset,
+ reg->payload.len);
return -1;
}
break;