summaryrefslogtreecommitdiffstats
path: root/Modules/_ssl.c
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-09-29 17:52:45 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2013-09-29 17:52:45 (GMT)
commit860aee75b83f8d026999682b7565e271c05433a4 (patch)
tree5f18c04d859e0de5ce69e0d3b57c023682292142 /Modules/_ssl.c
parent5176337bf597fd13491ae079756cc94aa10c9d3c (diff)
downloadcpython-860aee75b83f8d026999682b7565e271c05433a4.zip
cpython-860aee75b83f8d026999682b7565e271c05433a4.tar.gz
cpython-860aee75b83f8d026999682b7565e271c05433a4.tar.bz2
Properly initialize all fields of a SSL object after allocation.
Diffstat (limited to 'Modules/_ssl.c')
-rw-r--r--Modules/_ssl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index 1ae543f..448114b 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -455,6 +455,7 @@ newPySSLSocket(SSL_CTX *ctx, PySocketSockObject *sock,
self->peer_cert = NULL;
self->ssl = NULL;
self->Socket = NULL;
+ self->shutdown_seen_zero = 0;
/* Make sure the SSL error state is initialized */
(void) ERR_get_state();