diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2013-09-29 17:52:45 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2013-09-29 17:52:45 (GMT) |
commit | 860aee75b83f8d026999682b7565e271c05433a4 (patch) | |
tree | 5f18c04d859e0de5ce69e0d3b57c023682292142 /Modules | |
parent | 5176337bf597fd13491ae079756cc94aa10c9d3c (diff) | |
download | cpython-860aee75b83f8d026999682b7565e271c05433a4.zip cpython-860aee75b83f8d026999682b7565e271c05433a4.tar.gz cpython-860aee75b83f8d026999682b7565e271c05433a4.tar.bz2 |
Properly initialize all fields of a SSL object after allocation.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_ssl.c | 1 |
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(); |