summaryrefslogtreecommitdiffstats
path: root/Modules/_ssl.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-11-21 23:34:18 (GMT)
committerChristian Heimes <christian@cheimes.de>2013-11-21 23:34:18 (GMT)
commit1dbf61fa46d9b0c6a95096ed24638217951ff8b9 (patch)
tree12bd32689e88cd50b6eab267f4536a5a8d231434 /Modules/_ssl.c
parent18fc7be80d77f68a0e7ab54e6c222a4b7a3bc774 (diff)
downloadcpython-1dbf61fa46d9b0c6a95096ed24638217951ff8b9.zip
cpython-1dbf61fa46d9b0c6a95096ed24638217951ff8b9.tar.gz
cpython-1dbf61fa46d9b0c6a95096ed24638217951ff8b9.tar.bz2
downcast len to int. The code has already checked that len < INT_MAX
Diffstat (limited to 'Modules/_ssl.c')
-rw-r--r--Modules/_ssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index d2f0d92..69b1eef 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -2520,7 +2520,7 @@ _add_ca_certs(PySSLContext *self, void *data, Py_ssize_t len,
return -1;
}
- biobuf = BIO_new_mem_buf(data, len);
+ biobuf = BIO_new_mem_buf(data, (int)len);
if (biobuf == NULL) {
_setSSLError("Can't allocate buffer", 0, __FILE__, __LINE__);
return -1;