提交 fccc9f1f 编写于 作者: D Dan Carpenter 提交者: David S. Miller

appletalk: info leak in ->getname()

There is a one byte hole between ->sat_port and ->sat_addr.
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 cd4baaaa
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册