diff --git a/Misc/NEWS b/Misc/NEWS index 832f7dfb817..1bd24d32fa7 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -73,6 +73,9 @@ C-API Library ------- +- Issue #9075: In the ssl module, remove the setting of a ``debug`` flag + on an OpenSSL structure. + - Issue #5610: feedparser no longer eats extra characters at the end of a body part if the body part ends with a \r\n. diff --git a/Modules/_ssl.c b/Modules/_ssl.c index c02703dab89..6ed1a9fd47f 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c @@ -488,7 +488,6 @@ static PyObject *PySSL_SSLdo_handshake(PySSLObject *self) } 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);