[Python-checkins] bpo-37120: Fix _ssl get_num_tickets() (GH-14668)
Miss Islington (bot)
webhook-mailer at python.org
Tue Jul 9 07:30:56 EDT 2019
https://github.com/python/cpython/commit/76611c7c0af6b2f4d0d98a5db827d34cff54ce25
commit: 76611c7c0af6b2f4d0d98a5db827d34cff54ce25
branch: master
author: Victor Stinner <vstinner at redhat.com>
committer: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
date: 2019-07-09T04:30:52-07:00
summary:
bpo-37120: Fix _ssl get_num_tickets() (GH-14668)
Replace PyLong_FromLong() with PyLong_FromSize_t():
SSL_CTX_get_num_tickets() return type is size_t.
https://bugs.python.org/issue37120
files:
M Modules/_ssl.c
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index 3351af6cdefd..da30cbb758e2 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -3641,7 +3641,7 @@ set_maximum_version(PySSLContext *self, PyObject *arg, void *c)
static PyObject *
get_num_tickets(PySSLContext *self, void *c)
{
- return PyLong_FromLong(SSL_CTX_get_num_tickets(self->ctx));
+ return PyLong_FromSize_t(SSL_CTX_get_num_tickets(self->ctx));
}
static int
More information about the Python-checkins
mailing list