[Python-checkins] Correct return type in Modules/_ssl.c::sslmodule_legacy (GH-23609)
pablogsal
webhook-mailer at python.org
Wed Dec 2 01:08:04 EST 2020
https://github.com/python/cpython/commit/93a0ef76473683aa3ad215e11df18f7839488c4e
commit: 93a0ef76473683aa3ad215e11df18f7839488c4e
branch: master
author: Pablo Galindo <Pablogsal at gmail.com>
committer: pablogsal <Pablogsal at gmail.com>
date: 2020-12-02T06:07:56Z
summary:
Correct return type in Modules/_ssl.c::sslmodule_legacy (GH-23609)
files:
M Modules/_ssl.c
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index edb850ee46103..96d2796fcfad4 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -6416,7 +6416,7 @@ sslmodule_legacy(PyObject *module)
#ifdef HAVE_OPENSSL_CRYPTO_LOCK
/* note that this will start threading if not already started */
if (!_setup_ssl_threads()) {
- return NULL;
+ return 0;
}
#elif OPENSSL_VERSION_1_1
/* OpenSSL 1.1.0 builtin thread support is enabled */
More information about the Python-checkins
mailing list