commit | 83c86cf54b36a7325f615f5adf22b28e48f0e72d | [log] [tgz] |
---|---|---|
author | Miss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com> | Sun Oct 25 11:23:09 2020 -0700 |
committer | GitHub <noreply@github.com> | Sun Oct 25 11:23:09 2020 -0700 |
tree | b81ccc69ae1b4c500311264a404ebcafdce822d4 | |
parent | 0aaecb30483e98fc29c1f4253967d05da092f0c5 [diff] [blame] |
bpo-42144: Add a missing "goto error;" in the _ssl module (GH-22959) (cherry picked from commit c32f2976b8f4034724c3270397aa16f38daf470f) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
diff --git a/Modules/_ssl.c b/Modules/_ssl.c index 28796b3..7bdde45 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c
@@ -899,6 +899,7 @@ 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) {