]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39272: Remove dead assignment from _ssl__SSLContext_load_verify_locations_impl...
authorAlex Henrie <alexhenrie24@gmail.com>
Thu, 9 Jan 2020 09:12:12 +0000 (09:12 +0000)
committerVictor Stinner <vstinner@python.org>
Thu, 9 Jan 2020 09:12:12 +0000 (10:12 +0100)
Modules/_ssl.c

index 43b236c2121203f5a03905abdb647f33710488b0..a0d34b34baadca94235b5cb6a8dda8707c851cb2 100644 (file)
@@ -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);