Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11892ec commit 405a795Copy full SHA for 405a795
1 file changed
Modules/_ssl.c
@@ -373,10 +373,11 @@ static PyObject *PySSL_SSLwrite(PySSLObject *self, PyObject *args)
373
{
374
char *data;
375
int len;
376
+ int count;
377
int timedout;
378
int err;
379
- if (!PyArg_ParseTuple(args, "s#:write", &data, &len))
380
+ if (!PyArg_ParseTuple(args, "s#:write", &data, &count))
381
return NULL;
382
383
timedout = wait_for_timeout(self->Socket, 1);
@@ -387,7 +388,7 @@ static PyObject *PySSL_SSLwrite(PySSLObject *self, PyObject *args)
387
388
do {
389
err = 0;
390
Py_BEGIN_ALLOW_THREADS
- len = SSL_write(self->ssl, data, len);
391
+ len = SSL_write(self->ssl, data, count);
392
err = SSL_get_error(self->ssl, len);
393
Py_END_ALLOW_THREADS
394
if(PyErr_CheckSignals()) {
0 commit comments