summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorPaul Monson <paulmon@users.noreply.github.com>2019-05-15 22:38:55 (GMT)
committerSteve Dower <steve.dower@python.org>2019-05-15 22:38:55 (GMT)
commitfb7e7505ed1337bf40fa7b8b68317d1e86675a86 (patch)
tree5448f7cb8bf06f7b6c04012c1903c8934f761fd0 /Modules
parentd9e006bcefe6fac859b1b5d741725b9a91991044 (diff)
downloadcpython-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')
-rw-r--r--Modules/_ssl.c2
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;