Skip to content

Commit 83c86cf

Browse files
bpo-42144: Add a missing "goto error;" in the _ssl module (GH-22959)
(cherry picked from commit c32f297) Co-authored-by: Zackery Spytz <[email protected]>
1 parent 0aaecb3 commit 83c86cf

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)