http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0676

--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -705,6 +705,8 @@ int sock_getsockopt(struct socket *sock,
 	if (len < 0)
 		return -EINVAL;
 
+	v.val = 0;
+
 	switch(optname) {
 	case SO_DEBUG:
 		v.val = sock_flag(sk, SOCK_DBG);
