Skip to content
Commit d809ec89 authored by Timo Teräs's avatar Timo Teräs Committed by David S. Miller
Browse files

xfrm: do not assume that template resolving always returns xfrms



xfrm_resolve_and_create_bundle() assumed that, if policies indicated
presence of xfrms, bundle template resolution would always return
some xfrms. This is not true for 'use' level policies which can
result in no xfrm's being applied if there is no suitable xfrm states.
This fixes a crash by this incorrect assumption.

Reported-by: default avatarGeorge Spelvin <linux@horizon.com>
Bisected-by: default avatarGeorge Spelvin <linux@horizon.com>
Tested-by: default avatarGeorge Spelvin <linux@horizon.com>
Signed-off-by: default avatarTimo Teräs <timo.teras@iki.fi>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ab83a389
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