tipc: info leak in __tipc_nl_add_udp_addr()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 13 Oct 2016 08:06:06 +0000 (11:06 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Oct 2016 16:10:01 +0000 (12:10 -0400)
commit7307616245babb12c923151d8ef69af02e46c255
tree29f946b13c80eaf048850bc920a185587aa4c9d3
parent6104e112f4a613506ba1ea9d4b974279f888006b
tipc: info leak in __tipc_nl_add_udp_addr()

We should clear out the padding and unused struct members so that we
don't expose stack information to userspace.

Fixes: fdb3accc2c15 ('tipc: add the ability to get UDP options via netlink')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/udp_media.c