[PATCH 1/2] ipsec: Fix dst leak in xfrm_bundle_create().

2017-10-24 Thread Steffen Klassert
From: David Miller 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: David S. Miller Signed-off-by: Steffen Klassert

Re: ipsec: Fix dst leak in xfrm_bundle_create().

2017-10-11 Thread Steffen Klassert
On Tue, Oct 10, 2017 at 08:59:38PM -0700, David Miller wrote: > > 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: David S. Miller

ipsec: Fix dst leak in xfrm_bundle_create().

2017-10-10 Thread David Miller
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: David S. Miller --- Steffen, I found this via visual inspection. Please double check my