Correct return type in Modules/_ssl.c::sslmodule_legacy (GH-23609)

This commit is contained in:
Pablo Galindo 2020-12-02 06:07:56 +00:00 committed by GitHub
parent 46bd5ed94c
commit 93a0ef7647
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -6416,7 +6416,7 @@ sslmodule_legacy(PyObject *module)
#ifdef HAVE_OPENSSL_CRYPTO_LOCK #ifdef HAVE_OPENSSL_CRYPTO_LOCK
/* note that this will start threading if not already started */ /* note that this will start threading if not already started */
if (!_setup_ssl_threads()) { if (!_setup_ssl_threads()) {
return NULL; return 0;
} }
#elif OPENSSL_VERSION_1_1 #elif OPENSSL_VERSION_1_1
/* OpenSSL 1.1.0 builtin thread support is enabled */ /* OpenSSL 1.1.0 builtin thread support is enabled */