From: Pablo Neira Ayuso Date: Wed, 11 Mar 2020 14:30:16 +0000 (+0100) Subject: netfilter: nft_lookup: update element stateful expression X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=339706bc21c15f2feac9d1c3bd0ba55d74530081;p=linux.git netfilter: nft_lookup: update element stateful expression If the set element comes with an stateful expression, update it. Signed-off-by: Pablo Neira Ayuso --- diff --git a/net/netfilter/nft_lookup.c b/net/netfilter/nft_lookup.c index 660bad688e2bc..1e70359d633c0 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(®s->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] = {