Commit fccc9f1f authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller

appletalk: info leak in ->getname()

There is a one byte hole between ->sat_port and ->sat_addr.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cd4baaaa
...@@ -1253,7 +1253,7 @@ static int atalk_getname(struct socket *sock, struct sockaddr *uaddr, ...@@ -1253,7 +1253,7 @@ static int atalk_getname(struct socket *sock, struct sockaddr *uaddr,
goto out; goto out;
*uaddr_len = sizeof(struct sockaddr_at); *uaddr_len = sizeof(struct sockaddr_at);
memset(&sat.sat_zero, 0, sizeof(sat.sat_zero)); memset(&sat, 0, sizeof(sat));
if (peer) { if (peer) {
err = -ENOTCONN; err = -ENOTCONN;
......
Markdown is supported
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