summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Misc/NEWS2
-rw-r--r--Modules/_ssl.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 48851db..8974c4b 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -15,6 +15,8 @@ Core and Builtins
Library
-------
+- Properly initialize all fields of a SSL object after allocation.
+
- Issue #19095: SSLSocket.getpeercert() now raises ValueError when the
SSL handshake hasn't been done.
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);