Skip to content

Commit

Permalink
Remove extra self DECREF on ssl "no ciphers" error path.
Browse files Browse the repository at this point in the history
This doesn't come up in practice because nobody links against a broken
OpenSSL library that provides nothing.
  • Loading branch information
gpshead committed Mar 28, 2024
1 parent eefff68 commit 3ed1c1d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Modules/_ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -3166,7 +3166,6 @@ _ssl__SSLContext_impl(PyTypeObject *type, int proto_version)
result = SSL_CTX_set_cipher_list(ctx, "HIGH:!aNULL:!eNULL");
}
if (result == 0) {
Py_DECREF(self);
ERR_clear_error();
PyErr_SetString(get_state_ctx(self)->PySSLErrorObject,
"No cipher can be selected.");
Expand Down

0 comments on commit 3ed1c1d

Please sign in to comment.