From 4ac2cd199fbae8f52d43db7c817527ba1c5dedaa Mon Sep 17 00:00:00 2001 From: Jeremy Sowden Date: Tue, 3 Mar 2020 09:48:29 +0000 Subject: evaluate: don't evaluate payloads twice. Payload munging means that evaluation of payload expressions may not be idempotent. Add a flag to prevent them from being evaluated more than once. Signed-off-by: Jeremy Sowden Signed-off-by: Florian Westphal --- include/expression.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/expression.h') diff --git a/include/expression.h b/include/expression.h index 62fbbbb5..87c39e5d 100644 --- a/include/expression.h +++ b/include/expression.h @@ -300,6 +300,7 @@ struct expr { enum proto_bases base; unsigned int offset; bool is_raw; + bool evaluated; } payload; struct { /* EXPR_EXTHDR */ -- cgit v1.2.3