mirror of
https://github.com/python/cpython.git
synced 2025-11-27 05:44:16 +00:00
bpo-42144: Add a missing "goto error;" in the _ssl module (GH-22959)
This commit is contained in:
parent
3cde3788b6
commit
c32f2976b8
1 changed files with 1 additions and 0 deletions
|
|
@ -899,6 +899,7 @@ _ssl_configure_hostname(PySSLSocket *self, const char* server_hostname)
|
||||||
if (ip == NULL) {
|
if (ip == NULL) {
|
||||||
if (!SSL_set_tlsext_host_name(self->ssl, server_hostname)) {
|
if (!SSL_set_tlsext_host_name(self->ssl, server_hostname)) {
|
||||||
_setSSLError(NULL, 0, __FILE__, __LINE__);
|
_setSSLError(NULL, 0, __FILE__, __LINE__);
|
||||||
|
goto error;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (self->ctx->check_hostname) {
|
if (self->ctx->check_hostname) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue