From: Antoine Pitrou Date: Sun, 29 Sep 2013 17:52:45 +0000 (+0200) Subject: Properly initialize all fields of a SSL object after allocation. X-Git-Tag: v3.4.0a4~310^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=860aee75b83f8d026999682b7565e271c05433a4;p=thirdparty%2FPython%2Fcpython.git Properly initialize all fields of a SSL object after allocation. --- diff --git a/Misc/NEWS b/Misc/NEWS index 6a4c05ecc659..63601d8f1157 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -71,6 +71,8 @@ Core and Builtins Library ------- +- Properly initialize all fields of a SSL object after allocation. + - Issue #4366: Fix building extensions on all platforms when --enable-shared is used. diff --git a/Modules/_ssl.c b/Modules/_ssl.c index 1ae543f155a7..448114bd732b 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();