diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2009-08-06 05:48:36 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-08-06 22:08:40 +0200 |
commit | 80922bbb12a105f858a8f0abb879cb4302d0ecaa (patch) | |
tree | 79037282c1b184d20aaf19c8cbf8a311321926b7 /net | |
parent | rose: Fix rose_getname() leak (diff) | |
download | linux-80922bbb12a105f858a8f0abb879cb4302d0ecaa.tar.xz linux-80922bbb12a105f858a8f0abb879cb4302d0ecaa.zip |
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.c | 1 |
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; |