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:
parent
cd4baaaa04
commit
fccc9f1fa8
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue