Skip to content
Commit 517aa0bc authored by Joe Perches's avatar Joe Perches Committed by David S. Miller
Browse files

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: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1769192a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment