[Python-checkins] bpo-42144: Add a missing "goto error; " in the _ssl module (GH-22959)

miss-islington webhook-mailer at python.org
Sun Oct 25 14:02:39 EDT 2020


https://github.com/python/cpython/commit/c32f2976b8f4034724c3270397aa16f38daf470f
commit: c32f2976b8f4034724c3270397aa16f38daf470f
branch: master
author: Zackery Spytz <zspytz at gmail.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2020-10-25T11:02:30-07:00
summary:

bpo-42144: Add a missing "goto error;" in the _ssl module (GH-22959)

files:
M Modules/_ssl.c

diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index cb8f04a900a06..54c365b88e695 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -899,6 +899,7 @@ _ssl_configure_hostname(PySSLSocket *self, const char* server_hostname)
     if (ip == NULL) {
         if (!SSL_set_tlsext_host_name(self->ssl, server_hostname)) {
             _setSSLError(NULL, 0, __FILE__, __LINE__);
+            goto error;
         }
     }
     if (self->ctx->check_hostname) {



More information about the Python-checkins mailing list