summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2020-10-25 18:02:30 (GMT)
committerGitHub <noreply@github.com>2020-10-25 18:02:30 (GMT)
commitc32f2976b8f4034724c3270397aa16f38daf470f (patch)
treea37050159853cf0a986eeaa2634c36dbf1322814
parent3cde3788b68bce7deee1e6d31e265bbfce337731 (diff)
downloadcpython-c32f2976b8f4034724c3270397aa16f38daf470f.zip
cpython-c32f2976b8f4034724c3270397aa16f38daf470f.tar.gz
cpython-c32f2976b8f4034724c3270397aa16f38daf470f.tar.bz2
bpo-42144: Add a missing "goto error;" in the _ssl module (GH-22959)
-rw-r--r--Modules/_ssl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index cb8f04a..54c365b 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) {