diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-04-22 22:22:15 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-04-25 07:47:58 +0200 |
commit | fccc9f1fa878d9599aa583f0fec3bca95639667d (patch) | |
tree | 306ab82c0870bfd5f6aa95cbdab7f054b78144cc /net/appletalk | |
parent | gianfar: do not advertise any alarm capability. (diff) | |
download | linux-fccc9f1fa878d9599aa583f0fec3bca95639667d.tar.xz linux-fccc9f1fa878d9599aa583f0fec3bca95639667d.zip |
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>
Diffstat (limited to 'net/appletalk')
-rw-r--r-- | net/appletalk/ddp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/appletalk/ddp.c b/net/appletalk/ddp.c index 4a141e3cf076..ef12839a7cfe 100644 --- a/net/appletalk/ddp.c +++ b/net/appletalk/ddp.c @@ -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; |