aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2020-12-02 06:07:56 +0000
committerGitHub <noreply@github.com>2020-12-02 06:07:56 +0000
commit93a0ef76473683aa3ad215e11df18f7839488c4e (patch)
tree38294f2baa597ea180b874cd118e38572c07acb3 /Modules
parentbpo-40939: Restore some stable API functions incorrectly deleted (GH-23606) (diff)
downloadcpython-93a0ef76473683aa3ad215e11df18f7839488c4e.tar.gz
cpython-93a0ef76473683aa3ad215e11df18f7839488c4e.tar.bz2
cpython-93a0ef76473683aa3ad215e11df18f7839488c4e.zip
Correct return type in Modules/_ssl.c::sslmodule_legacy (GH-23609)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index edb850ee461..96d2796fcfa 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 */