diff --git a/net/appletalk/ddp.c b/net/appletalk/ddp.c index 4a141e3cf0760084931246bc8e9f50fac4517c69..ef12839a7cfe55b6ee99b2be667c0cd9fb829f79 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;