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 and adorilson committed Mar 11, 2021
1 parent 9c5513f commit 8fab78f
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 8fab78f

Please sign in to comment.