diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2001-02-07 20:41:17 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2001-02-07 20:41:17 (GMT) |
commit | b38175ef3dd6d951f5e058d85a2d7d62eb424a90 (patch) | |
tree | 21b2916b588d8b01978f4605412385c12dfdbba2 /Modules | |
parent | 3c044942ab7deb4d776861e3a0620ba924136e9a (diff) | |
download | cpython-b38175ef3dd6d951f5e058d85a2d7d62eb424a90.zip cpython-b38175ef3dd6d951f5e058d85a2d7d62eb424a90.tar.gz cpython-b38175ef3dd6d951f5e058d85a2d7d62eb424a90.tar.bz2 |
Remove the optional integer argument to SSL_write; now it will always send
the entire string passed to it
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/socketmodule.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 00383c7..dffd810 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -2216,14 +2216,11 @@ staticforward PyTypeObject SSL_Type = { static PyObject *SSL_SSLwrite(SSLObject *self, PyObject *args) { char *data; - size_t len = 0; + size_t len; - if (!PyArg_ParseTuple(args, "s#|i:write", &data, &len)) + if (!PyArg_ParseTuple(args, "s#:write", &data, &len)) return NULL; - if (!len) - len = strlen(data); - len = SSL_write(self->ssl, data, len); return PyInt_FromLong((long)len); } |