Browse Source
bpo-42144: Add a missing "goto error;" in the _ssl module (GH-22959)
pull/22978/head
Zackery Spytz
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
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) { |
|
|
|
|