ipv6: sctp: implement sctp_v6_destroy_sock()
authorEric Dumazet <edumazet@google.com>
Tue, 1 Dec 2015 15:20:07 +0000 (07:20 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Dec 2015 17:05:57 +0000 (12:05 -0500)
commit602dd62dfbda3e63a2d6a3cbde953ebe82bf5087
tree3b7d4f344916bc68221506a4a141a68cc9b5aa1c
parent79aecc7216379788e0c6900ac50ea2d579190219
ipv6: sctp: implement sctp_v6_destroy_sock()

Dmitry Vyukov reported a memory leak using IPV6 SCTP sockets.

We need to call inet6_destroy_sock() to properly release
inet6 specific fields.

Reported-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/socket.c