commit | 80f75e684e5a67d24bc327c3fc9e78a27ef0ef8c | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Sat Jan 29 11:31:20 2011 +0000 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Sat Jan 29 11:31:20 2011 +0000 |
tree | 8c75d4749c16418c254404c27b4bef3db941c3dd | |
parent | a1eac7218ba098746f611e6edcc8eb5b72bc89e7 [diff] |
Issue #10989: Fix a crash on SSLContext.load_verify_locations(None, True). Patch reviewed by Antoine Pitrou, okayed by Georg Brandl.
diff --git a/Modules/_ssl.c b/Modules/_ssl.c index 1e4b38a..141b1ae 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c
@@ -1683,7 +1683,7 @@ return NULL; } if (capath && !PyUnicode_FSConverter(capath, &capath_bytes)) { - Py_DECREF(cafile_bytes); + Py_XDECREF(cafile_bytes); PyErr_SetString(PyExc_TypeError, "capath should be a valid filesystem path"); return NULL;