Browse Source

bpo-42144: Add a missing "goto error;" in the _ssl module (GH-22959)

pull/22978/head
Zackery Spytz 6 years ago
committed by GitHub
parent
commit
c32f2976b8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      Modules/_ssl.c

1
Modules/_ssl.c

@ -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) {

Loading…
Cancel
Save