mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-117310: Remove extra DECREF on "no ciphers" error path in _ssl._SSLContext
constructor (#117309)
Remove extra self DECREF on ssl "no ciphers" error path. This doesn't come up in practice because nobody links against a broken OpenSSL library that provides nothing.
This commit is contained in:
parent
6c8ac8a32f
commit
8cb7d7ff86
2 changed files with 4 additions and 1 deletions
|
@ -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.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue