Skip to content

Commit

Permalink
bpo-42144: Add a missing "goto error;" in the _ssl module (pythonGH-2…
Browse files Browse the repository at this point in the history
  • Loading branch information
ZackerySpytz authored Oct 25, 2020
1 parent 3cde378 commit c32f297
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Modules/_ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c32f297

Please sign in to comment.