Skip to content

Commit

Permalink
Correct return type in Modules/_ssl.c::sslmodule_legacy (pythonGH-23609)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablogsal authored and adorilson committed Mar 11, 2021
1 parent 2bc30b3 commit eea3ee2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/_ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit eea3ee2

Please sign in to comment.