[Python-checkins] bpo-39272: Remove dead assignment from _ssl__SSLContext_load_verify_locations_impl (GH-17916)
Victor Stinner
webhook-mailer at python.org
Thu Jan 9 04:12:33 EST 2020
https://github.com/python/cpython/commit/a1c1be24cb3ae25b5b53e9dc94d6327009626283
commit: a1c1be24cb3ae25b5b53e9dc94d6327009626283
branch: master
author: Alex Henrie <alexhenrie24 at gmail.com>
committer: Victor Stinner <vstinner at python.org>
date: 2020-01-09T10:12:12+01:00
summary:
bpo-39272: Remove dead assignment from _ssl__SSLContext_load_verify_locations_impl (GH-17916)
files:
M Modules/_ssl.c
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index 43b236c212120..a0d34b34baadc 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -4223,7 +4223,6 @@ _ssl__SSLContext_load_verify_locations_impl(PySSLContext *self,
r = SSL_CTX_load_verify_locations(self->ctx, cafile_buf, capath_buf);
PySSL_END_ALLOW_THREADS
if (r != 1) {
- ok = 0;
if (errno != 0) {
ERR_clear_error();
PyErr_SetFromErrno(PyExc_OSError);
More information about the Python-checkins
mailing list