Skip to content

Commit c32f297

Browse files
authored
bpo-42144: Add a missing "goto error;" in the _ssl module (GH-22959)
1 parent 3cde378 commit c32f297

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Modules/_ssl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -899,6 +899,7 @@ _ssl_configure_hostname(PySSLSocket *self, const char* server_hostname)
899899
if (ip == NULL) {
900900
if (!SSL_set_tlsext_host_name(self->ssl, server_hostname)) {
901901
_setSSLError(NULL, 0, __FILE__, __LINE__);
902+
goto error;
902903
}
903904
}
904905
if (self->ctx->check_hostname) {

0 commit comments

Comments
 (0)