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
…2959)

(cherry picked from commit c32f297)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
  • Loading branch information
ZackerySpytz authored and miss-islington committed Oct 25, 2020
1 parent 8485d3b commit a8f4a84
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 @@ -901,6 +901,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 a8f4a84

Please sign in to comment.