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

(cherry picked from commit c32f2976b8)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
This commit is contained in:
Miss Skeleton (bot) 2020-10-25 11:23:09 -07:00 committed by GitHub
parent 0aaecb3048
commit 83c86cf54b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View 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) {