]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
[IPSEC]: Fix potential dst leak in xfrm_lookup
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 11 Dec 2007 12:38:08 +0000 (04:38 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 Dec 2007 12:38:08 +0000 (04:38 -0800)
commit75b8c133267053c9986a7c8db5131f0e7349e806
tree264a44a1882196c894f1af84baf7fbba7698678c
parent3f03e387893ffa07a4d5dac96772f9db3221a185
[IPSEC]: Fix potential dst leak in xfrm_lookup

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: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_policy.c