diff options
author | Christian Heimes <christian@python.org> | 2017-09-07 23:45:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-07 23:45:39 (GMT) |
commit | 6c99b652f7909f86753b9e567ea18c95ee736e83 (patch) | |
tree | 776c80884616295957d07048b66ee6f5c7daca3c /Modules | |
parent | fb4c28c032e26b3cdbe67eae3769d45207ac3507 (diff) | |
download | cpython-6c99b652f7909f86753b9e567ea18c95ee736e83.zip cpython-6c99b652f7909f86753b9e567ea18c95ee736e83.tar.gz cpython-6c99b652f7909f86753b9e567ea18c95ee736e83.tar.bz2 |
[3.6] bpo-28958: Improve SSLContext error reporting. (GH-3414) (#3432)
Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 17c9ac9)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_ssl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c index 25fb809..ab30d21 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c @@ -2643,8 +2643,7 @@ _ssl__SSLContext_impl(PyTypeObject *type, int proto_version) return NULL; } if (ctx == NULL) { - PyErr_SetString(PySSLErrorObject, - "failed to allocate SSL context"); + _setSSLError(NULL, 0, __FILE__, __LINE__); return NULL; } |