summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Modules/_ssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index edb850ee46..96d2796fcf 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 */