skb leakage in inet6_csk_xmit
Subsystems (3)
PATCH 1/1 skb leakage in inet6_csk_xmit
Hello!
inet6_csk_xit does not free skb when routing fails.
Signed-off-by Alexey Kuznetsov <[email protected]>
net/ipv6/inet6_connection_sock.c +2 -0
@@ -173,6 +173,7 @@ int inet6_csk_xmit(struct sk_buff *skb,if (err) { sk->sk_err_soft = -err; +kfree_skb (skb);return err; }
@@ -181,6 +182,7 @@ int inet6_csk_xmit(struct sk_buff *skb,if ((err =xfrm_lookup (&dst, &fl, sk,0 )) <0 ) { sk->sk_route_caps =0 ; +kfree_skb (skb);return err; }
From: Alexey Kuznetsov <[email protected]>
Date: Wed, 10 May 2006 13:02:16 +0400
Quoted 3 lines
inet6_csk_xitdoes not free skb when routing fails.Signed-off-by Alexey Kuznetsov <[email protected]>
Applied, thanks a lot.