]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Correct return type in Modules/_ssl.c::sslmodule_legacy (GH-23609)
authorPablo Galindo <Pablogsal@gmail.com>
Wed, 2 Dec 2020 06:07:56 +0000 (06:07 +0000)
committerGitHub <noreply@github.com>
Wed, 2 Dec 2020 06:07:56 +0000 (06:07 +0000)
Modules/_ssl.c

index edb850ee4610373f11b62c929518eddb1b88f54a..96d2796fcfad4869b7f1fe5b09bb9418c67c6407 100644 (file)
@@ -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 */