Skip to content

Commit 93a0ef7

Browse files
authored
Correct return type in Modules/_ssl.c::sslmodule_legacy (GH-23609)
1 parent 46bd5ed commit 93a0ef7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_ssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6416,7 +6416,7 @@ sslmodule_legacy(PyObject *module)
64166416
#ifdef HAVE_OPENSSL_CRYPTO_LOCK
64176417
/* note that this will start threading if not already started */
64186418
if (!_setup_ssl_threads()) {
6419-
return NULL;
6419+
return 0;
64206420
}
64216421
#elif OPENSSL_VERSION_1_1
64226422
/* OpenSSL 1.1.0 builtin thread support is enabled */

0 commit comments

Comments
 (0)