Skip to content

Commit 8e980ec

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 8485d3b commit 8e980ec

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
@@ -901,6 +901,7 @@ _ssl_configure_hostname(PySSLSocket *self, const char* server_hostname)
901901
if (ip == NULL) {
902902
if (!SSL_set_tlsext_host_name(self->ssl, server_hostname)) {
903903
_setSSLError(NULL, 0, __FILE__, __LINE__);
904+
goto error;
904905
}
905906
}
906907
if (self->ctx->check_hostname) {

0 commit comments

Comments
 (0)