summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-09-29 17:53:45 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2013-09-29 17:53:45 (GMT)
commitb2201e1aa639fe990f8c0cd79b52a7033d84b32d (patch)
tree3f4d3fdaae45899760bed09faae5b878d4062d2b /Modules
parent20b85557f2cc8f5f10d7d98314a3181c60553e12 (diff)
parent860aee75b83f8d026999682b7565e271c05433a4 (diff)
downloadcpython-b2201e1aa639fe990f8c0cd79b52a7033d84b32d.zip
cpython-b2201e1aa639fe990f8c0cd79b52a7033d84b32d.tar.gz
cpython-b2201e1aa639fe990f8c0cd79b52a7033d84b32d.tar.bz2
Properly initialize all fields of a SSL object after allocation.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ssl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index 3afe893..20d0212 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -486,6 +486,7 @@ newPySSLSocket(PySSLContext *sslctx, PySocketSockObject *sock,
self->ssl = NULL;
self->Socket = NULL;
self->ctx = sslctx;
+ self->shutdown_seen_zero = 0;
self->handshake_done = 0;
Py_INCREF(sslctx);