Commit 37d99de3 authored by Herbert Xu's avatar Herbert Xu Committed by Greg Kroah-Hartman
Browse files

IPSEC: Fix potential dst leak in xfrm_lookup



[IPSEC]: Fix potential dst leak in xfrm_lookup

[ Upstream commit: 75b8c133 ]

If we get an error during the actual policy lookup we don't free the
original dst while the caller expects us to always free the original
dst in case of error.

This patch fixes that.

Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 596bc933
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment