appletalk: info leak in ->getname()

There is a one byte hole between ->sat_port and ->sat_addr.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Dan Carpenter 2013-04-22 20:22:15 +00:00 committed by David S. Miller
parent cd4baaaa04
commit fccc9f1fa8
1 changed files with 1 additions and 1 deletions

View File

@ -1253,7 +1253,7 @@ static int atalk_getname(struct socket *sock, struct sockaddr *uaddr,
goto out;
*uaddr_len = sizeof(struct sockaddr_at);
memset(&sat.sat_zero, 0, sizeof(sat.sat_zero));
memset(&sat, 0, sizeof(sat));
if (peer) {
err = -ENOTCONN;