From: Pablo Galindo Date: Wed, 2 Dec 2020 06:07:56 +0000 (+0000) Subject: Correct return type in Modules/_ssl.c::sslmodule_legacy (GH-23609) X-Git-Tag: v3.10.0a3~35 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=93a0ef76473683aa3ad215e11df18f7839488c4e;p=thirdparty%2FPython%2Fcpython.git Correct return type in Modules/_ssl.c::sslmodule_legacy (GH-23609) --- diff --git a/Modules/_ssl.c b/Modules/_ssl.c index edb850ee4610..96d2796fcfad 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 */