Skip to content

Commit

Permalink
bpo-42144: Add a missing "goto error;" in the _ssl module (GH-22959)
Browse files Browse the repository at this point in the history
(cherry picked from commit c32f297)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
  • Loading branch information
miss-islington and ZackerySpytz authored Oct 25, 2020
1 parent 0aaecb3 commit 83c86cf
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 83c86cf

Please sign in to comment.