summaryrefslogtreecommitdiffstats
path: root/net/core/sock.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2009-02-23 20:29:21 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2009-02-23 20:29:21 -0800
commitf7e603ad8f78cd3b59e33fa72707da0cbabdf699 (patch)
treeb7ddd5d835137f324424b3a93436dcca581ec1b6 /net/core/sock.c
parentcac711211a039ae2e2dc6322ffb3c2279d093bf1 (diff)
parent50fee1dec5d71b8a14c1b82f2f42e16adc227f8b (diff)
downloadtalos-op-linux-f7e603ad8f78cd3b59e33fa72707da0cbabdf699.tar.gz
talos-op-linux-f7e603ad8f78cd3b59e33fa72707da0cbabdf699.zip
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: net: amend the fix for SO_BSDCOMPAT gsopt infoleak netns: build fix for net_alloc_generic
Diffstat (limited to 'net/core/sock.c')
-rw-r--r--net/core/sock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/sock.c b/net/core/sock.c
index 6e4f14d1ef81..5f97caa158e8 100644
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -696,7 +696,7 @@ int sock_getsockopt(struct socket *sock, int level, int optname,
if (len < 0)
return -EINVAL;
- v.val = 0;
+ memset(&v, 0, sizeof(v));
switch(optname) {
case SO_DEBUG:
OpenPOWER on IntegriCloud