[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:21:44 EDT 2020
https://github.com/python/cpython/commit/8e980ecfb7b42063ed41d665288aff69f0ed7fdc
commit: 8e980ecfb7b42063ed41d665288aff69f0ed7fdc
branch: 3.8
author: Miss Skeleton (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2020-10-25T11:21:35-07:00
summary:
bpo-42144: Add a missing "goto error;" in the _ssl module (GH-22959)
(cherry picked from commit c32f2976b8f4034724c3270397aa16f38daf470f)
Co-authored-by: Zackery Spytz <zspytz at gmail.com>
files:
M Modules/_ssl.c
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index e6dda298cbe25..49e8a191e5d2d 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -901,6 +901,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