[XFRM]: Fix leak in ah6_input tmp_hdr is not freed when ipv6_clear_mutable_options fails.
Coverity #650 Signed-off-by: Patrick McHardy <[EMAIL PROTECTED]> --- commit 901a2a6eb676baea9392e47f16f7e0a0219b7ba5 tree 0424294ae2d79986e07e7751025e763c6b9ea5d7 parent 9275d31561bc3268ae997dbff36eed84afe80516 author Patrick McHardy <[EMAIL PROTECTED]> Mon, 13 Mar 2006 00:04:54 +0100 committer Patrick McHardy <[EMAIL PROTECTED]> Mon, 13 Mar 2006 00:04:54 +0100 net/ipv6/ah6.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/ipv6/ah6.c b/net/ipv6/ah6.c index c7932cb..8496374 100644 --- a/net/ipv6/ah6.c +++ b/net/ipv6/ah6.c @@ -279,7 +279,7 @@ static int ah6_input(struct xfrm_state * goto out; memcpy(tmp_hdr, skb->nh.raw, hdr_len); if (ipv6_clear_mutable_options(skb->nh.ipv6h, hdr_len)) - goto out; + goto free_out; skb->nh.ipv6h->priority = 0; skb->nh.ipv6h->flow_lbl[0] = 0; skb->nh.ipv6h->flow_lbl[1] = 0; - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html