summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-02-24 11:10:27 +0100
committerFlorian Westphal <fw@strlen.de>2018-02-26 14:30:48 +0100
commitd3b6a35d20040e62b1d88aeedccbe2184f06408e (patch)
treef86e05a93c398ddd244932d992ac4d83bfa18815 /src
parent75191f7093bf636993087988657d0e32d1620138 (diff)
payload: don't resolve expressions using the inet pseudoheader
Else, '@ll,0,8' will be mapped to 'inet nfproto', but thats not correct (inet is a pseudo header). Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'src')
-rw-r--r--src/payload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/payload.c b/src/payload.c
index a1e7e77e..ef437b44 100644
--- a/src/payload.c
+++ b/src/payload.c
@@ -535,7 +535,7 @@ void payload_expr_complete(struct expr *expr, const struct proto_ctx *ctx)
assert(expr->ops->type == EXPR_PAYLOAD);
desc = ctx->protocol[expr->payload.base].desc;
- if (desc == NULL)
+ if (desc == NULL || desc == &proto_inet)
return;
assert(desc->base == expr->payload.base);