Skip to content

Commit

Permalink
netfilter: nft_lookup: update element stateful expression
Browse files Browse the repository at this point in the history
If the set element comes with an stateful expression, update it.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
  • Loading branch information
Pablo Neira Ayuso committed Mar 15, 2020
1 parent 76adfaf commit 339706b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/netfilter/nft_lookup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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] = {
Expand Down

0 comments on commit 339706b

Please sign in to comment.