xfrm: Fix the usage of skb->sk

xfrm assumed to always have a full socket at skb->sk.
This is not always true, so fix it by converting to a
full socket before it is used.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
This commit is contained in:
Steffen Klassert 2025-01-16 11:46:03 +01:00
commit 1620c88887
6 changed files with 10 additions and 9 deletions