Patch reviewed by Antoine Pitrou, okayed by Georg Brandl.
ctx.load_verify_locations(CERTFILE, CAPATH)
ctx.load_verify_locations(CERTFILE, capath=BYTES_CAPATH)
+ # Issue #10989: crash if the second argument type is invalid
+ self.assertRaises(TypeError, ctx.load_verify_locations, None, True)
+
@skip_if_broken_ubuntu_ssl
def test_session_stats(self):
for proto in PROTOCOLS:
Library
-------
+- Issue #10989: Fix a crash on SSLContext.load_verify_locations(None, True).
+
- Issue #11020: Command-line pyclbr was broken because of missing 2-to-3
conversion.
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;