netfilter: nf_tables: call skb_valid_dst() before skb_dst()

When fetching the dst_entry from the skb, check if it valid, ie. this is
not a template dst, for extensions that can be used from the netdev
ingress and egress chains.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
Pablo Neira Ayuso 2026-07-28 10:40:06 +02:00
commit 689db98e53
5 changed files with 26 additions and 9 deletions