]> git.karo-electronics.de Git - linux-beck.git/commit
sctp: sctp_sendmsg: Don't initialize default_sinfo
authorJoe Perches <joe@perches.com>
Thu, 12 May 2011 11:27:20 +0000 (11:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 May 2011 21:30:49 +0000 (17:30 -0400)
commit517aa0bcda9b092a4c3fab7bf93f0cebe372ece0
tree28edc7ce3bd99465ae0eca4294ebd98dd4bbdb25
parent1769192a3c50778e03352a3d95faec830d47ba55
sctp: sctp_sendmsg: Don't initialize default_sinfo

This variable only needs initialization when cmsgs.info
is NULL.

Use memset to ensure padding is also zeroed so
kernel doesn't leak any data.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/socket.c