diff options
author | Paul Monson <paulmon@users.noreply.github.com> | 2019-05-15 22:38:55 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@python.org> | 2019-05-15 22:38:55 (GMT) |
commit | fb7e7505ed1337bf40fa7b8b68317d1e86675a86 (patch) | |
tree | 5448f7cb8bf06f7b6c04012c1903c8934f761fd0 /Modules/_ssl.c | |
parent | d9e006bcefe6fac859b1b5d741725b9a91991044 (diff) | |
download | cpython-fb7e7505ed1337bf40fa7b8b68317d1e86675a86.zip cpython-fb7e7505ed1337bf40fa7b8b68317d1e86675a86.tar.gz cpython-fb7e7505ed1337bf40fa7b8b68317d1e86675a86.tar.bz2 |
bpo-35926: Add support for OpenSSL 1.1.1b on Windows (GH-11779)
Diffstat (limited to 'Modules/_ssl.c')
-rw-r--r-- | Modules/_ssl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c index e75e346..390a1af 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c @@ -669,7 +669,7 @@ fill_and_set_sslerror(PySSLSocket *sslsock, PyObject *type, int ssl_errno, if (msg == NULL) goto fail; - init_value = Py_BuildValue("iN", ssl_errno, msg); + init_value = Py_BuildValue("iN", ERR_GET_REASON(ssl_errno), msg); if (init_value == NULL) goto fail; |