]> granicus.if.org Git - python/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 2984b57e43d655edbd974ef214b5b8a30a553b5f..af6ed7e96ca0aafc9c12c9d597885be94cc708f9 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -32,6 +32,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 9164a65201f9582694c12b997f0bdf909f78b279..d95568cf167ab6e2624904af9cca5621266eb91b 100644 (file)
@@ -286,6 +286,7 @@ newPySSLObject(PySocketSockObject *Sock, char *key_file, char *cert_file,
     self->ssl = NULL;
     self->ctx = NULL;
     self->Socket = NULL;
+    self->shutdown_seen_zero = 0;
 
     /* Make sure the SSL error state is initialized */
     (void) ERR_get_state();