Issue #9075: In the ssl module, remove the setting of a `debug` flag
on an OpenSSL structure.
diff --git a/Misc/NEWS b/Misc/NEWS
index 70ce171..8286212 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -17,6 +17,9 @@
Library
-------
+- Issue #9075: In the ssl module, remove the setting of a ``debug`` flag
+ on an OpenSSL structure.
+
What's New in Python 2.7 release candidate 2?
=============================================
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index fe029ce..e44fa07 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -497,7 +497,6 @@
} while (err == SSL_ERROR_WANT_READ || err == SSL_ERROR_WANT_WRITE);
if (ret < 1)
return PySSL_SetError(self, ret, __FILE__, __LINE__);
- self->ssl->debug = 1;
if (self->peer_cert)
X509_free (self->peer_cert);