diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-06-14 11:50:42 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-06-14 11:52:08 +0200 |
commit | 0867f363a43f9772aa706925db962731dcab976d (patch) | |
tree | c5385deecca99761a07215655a83ad077899bc94 /src | |
parent | 4e207c2b4c57cc926b8781e9becd09db06440ed0 (diff) |
evaluate: update byteorder only for implicit maps
The byteorder adjustment for the integer datatype is only required by
implicit maps.
Fixes: b9b6092304ae ("evaluate: store byteorder for set keys")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/evaluate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/evaluate.c b/src/evaluate.c index a41a28e9..337b66c5 100644 --- a/src/evaluate.c +++ b/src/evaluate.c @@ -84,7 +84,8 @@ static struct expr *implicit_set_declaration(struct eval_ctx *ctx, struct set *set; struct handle h; - key_fix_dtype_byteorder(key); + if (expr->set_flags & NFT_SET_MAP) + key_fix_dtype_byteorder(key); set = set_alloc(&expr->location); set->flags = NFT_SET_ANONYMOUS | expr->set_flags; |