summaryrefslogtreecommitdiff
path: root/net/netfilter
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2020-03-11 17:30:16 +0300
committerPablo Neira Ayuso <pablo@netfilter.org>2020-03-15 17:27:50 +0300
commit339706bc21c15f2feac9d1c3bd0ba55d74530081 (patch)
treed1cd95c760b18b0e4a4820d93c905918ccc1ee16 /net/netfilter
parent76adfafecab5e4aae460e9781720b20d115bb096 (diff)
downloadlinux-339706bc21c15f2feac9d1c3bd0ba55d74530081.tar.xz
netfilter: nft_lookup: update element stateful expression
If the set element comes with an stateful expression, update it. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter')
-rw-r--r--net/netfilter/nft_lookup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netfilter/nft_lookup.c b/net/netfilter/nft_lookup.c
index 660bad688e2b..1e70359d633c 100644
--- a/net/netfilter/nft_lookup.c
+++ b/net/netfilter/nft_lookup.c
@@ -43,6 +43,7 @@ void nft_lookup_eval(const struct nft_expr *expr,
nft_data_copy(&regs->data[priv->dreg],
nft_set_ext_data(ext), set->dlen);
+ nft_set_elem_update_expr(ext, regs, pkt);
}
static const struct nla_policy nft_lookup_policy[NFTA_LOOKUP_MAX + 1] = {