]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-42144: Add a missing "goto error;" in the _ssl module (GH-22959)
authorZackery Spytz <zspytz@gmail.com>
Sun, 25 Oct 2020 18:02:30 +0000 (12:02 -0600)
committerGitHub <noreply@github.com>
Sun, 25 Oct 2020 18:02:30 +0000 (11:02 -0700)
Modules/_ssl.c

index cb8f04a900a06e8de9b467ad63bdb1eac03e8c63..54c365b88e69510891dfb5917cbd6984a1eacf36 100644 (file)
@@ -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) {