summaryrefslogtreecommitdiff
path: root/net/xfrm/xfrm_policy.c
diff options
context:
space:
mode:
authorKoichiro Den <den@klaipeden.com>2017-08-01 23:21:46 +0900
committerSteffen Klassert <steffen.klassert@secunet.com>2017-08-02 13:37:37 +0200
commit3f5a95ad6c6c05e6b00f0c20e30da66c986564d5 (patch)
treeb455549c1a6116277a7aa50f5ea2b7e761cc54c9 /net/xfrm/xfrm_policy.c
parente6194923237f3952b955c343b65b211f36bce01c (diff)
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: Koichiro Den <den@klaipeden.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/xfrm/xfrm_policy.c')
0 files changed, 0 insertions, 0 deletions