]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Properly initialize all fields of a SSL object after allocation.
authorAntoine Pitrou <solipsis@pitrou.net>
Sun, 29 Sep 2013 17:52:45 +0000 (19:52 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Sun, 29 Sep 2013 17:52:45 +0000 (19:52 +0200)
Misc/NEWS
Modules/_ssl.c

index 6a4c05ecc6597d9373e7f133536b4521c82a932d..63601d8f11571766d5603da1fd4f762374a96292 100644 (file)
--- 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.
 
index 1ae543f155a701b53786a61fc3cae7cc0815ab45..448114bd732b188fa1c7bc755d8aeb231109d9cf 100644 (file)
@@ -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();