Skip to content
Commit 10a7ef33 authored by David Miller's avatar David Miller Committed by Steffen Klassert
Browse files

ipsec: Fix dst leak in xfrm_bundle_create().



If we cannot find a suitable inner_mode value, we will leak
the currently allocated 'xdst'.

The fix is to make sure it is linked into the chain before
erroring out.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
parent c0576e39
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