Skip to content
Commit 3f5a95ad authored by Koichiro Den's avatar Koichiro Den Committed by Steffen Klassert
Browse files

xfrm: fix null pointer dereference on state and tmpl sort



Creating sub policy that matches the same outer flow as main policy does
leads to a null pointer dereference if the outer mode's family is ipv4.
For userspace compatibility, this patch just eliminates the crash i.e.,
does not introduce any new sorting rule, which would fruitlessly affect
all but the aforementioned case.

Signed-off-by: default avatarKoichiro Den <den@klaipeden.com>
Signed-off-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
parent e6194923
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment