Skip to content
Commit b1e3a560 authored by Steffen Klassert's avatar Steffen Klassert
Browse files

xfrm: Fix NULL pointer dereference on policy lookup



When xfrm interfaces are used in combination with namespaces
and ESP offload, we get a dst_entry NULL pointer dereference.
This is because we don't have a dst_entry attached in the ESP
offloading case and we need to do a policy lookup before the
namespace transition.

Fix this by expicit checking of skb_dst(skb) before accessing it.

Fixes: f203b76d ("xfrm: Add virtual xfrm interfaces")
Signed-off-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
parent 68dc022d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment