net: sctp: sctp_endpoint_free: zero out secret key data
commit0535d24446251c444a03d912a0022319a2de16f8
authorDaniel Borkmann <dborkman@redhat.com>
Fri, 8 Feb 2013 03:04:35 +0000 (8 03:04 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Feb 2013 18:47:35 +0000 (14 10:47 -0800)
tree6bdbdd2c0b09dd0585d214bd542a5e604b52eb65
parent7340fda068b62790d612ebbd3a331a2847895f19
net: sctp: sctp_endpoint_free: zero out secret key data

[ Upstream commit b5c37fe6e24eec194bb29d22fdd55d73bcc709bf ]

On sctp_endpoint_destroy, previously used sensitive keying material
should be zeroed out before the memory is returned, as we already do
with e.g. auth keys when released.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Vlad Yasevich <vyasevic@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sctp/endpointola.c