summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2019-05-16 09:41:36 -0700
committerGitHub <noreply@github.com>2019-05-16 09:41:36 -0700
commitaa73841a8fdded4a462d045d1eb03899cbeecd65 (patch)
tree993d3f31f94d8c248e7d03340a6ab2b8c23b56bd /Modules
parent876756e4a1a4480eb94ea4312577070078e4b923 (diff)
downloadcpython-git-aa73841a8fdded4a462d045d1eb03899cbeecd65.tar.gz
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 fff1a28843..30c91f5931 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;