aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorEric Dumazet2009-08-06 03:48:36 +0000
committerDavid S. Miller2009-08-06 13:08:40 -0700
commit80922bbb12a105f858a8f0abb879cb4302d0ecaa (patch)
tree79037282c1b184d20aaf19c8cbf8a311321926b7 /net
parent17ac2e9c58b69a1e25460a568eae1b0dc0188c25 (diff)
econet: Fix econet_getname() leak
econet_getname() can leak kernel memory to user. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/econet/af_econet.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/econet/af_econet.c b/net/econet/af_econet.c
index 2e1f836d4240..f0bbc57926cd 100644
--- a/net/econet/af_econet.c
+++ b/net/econet/af_econet.c
@@ -520,6 +520,7 @@ static int econet_getname(struct socket *sock, struct sockaddr *uaddr,
if (peer)
return -EOPNOTSUPP;
+ memset(sec, 0, sizeof(*sec));
mutex_lock(&econet_mutex);
sk = sock->sk;