Skip to content

Commit d2f5cc1

Browse files
committed
Fix _PySSL_FIX_ERRNO silliness.
1 parent 13d2e7d commit d2f5cc1

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_ssl.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,6 @@ newPySSLSocket(PySSLContext *sslctx, PySocketSockObject *sock,
899899
PySSL_BEGIN_ALLOW_THREADS(sslctx)
900900
self->ssl = SSL_new(ctx);
901901
PySSL_END_ALLOW_THREADS(sslctx)
902-
_PySSL_FIX_ERRNO;
903902
if (self->ssl == NULL) {
904903
Py_DECREF(self);
905904
_setSSLError(get_state_ctx(self), NULL, 0, __FILE__, __LINE__);

Modules/_ssl/debughelpers.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ _PySSLContext_set_keylog_filename(PyObject *op, PyObject *arg,
192192
Py_BEGIN_ALLOW_THREADS
193193
BIO_free_all(bio);
194194
Py_END_ALLOW_THREADS
195+
_PySSL_FIX_ERRNO;
195196
}
196197

197198
if (arg == Py_None) {

0 commit comments

Comments
 (0)