mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Patch #103636: Allow writing strings containing null bytes to an SSL socket
This commit is contained in:
parent
22aa6447b4
commit
8820a535c1
1 changed files with 1 additions and 1 deletions
|
@ -2218,7 +2218,7 @@ static PyObject *SSL_SSLwrite(SSLObject *self, PyObject *args)
|
|||
char *data;
|
||||
size_t len = 0;
|
||||
|
||||
if (!PyArg_ParseTuple(args, "s|i:write", &data, &len))
|
||||
if (!PyArg_ParseTuple(args, "s#|i:write", &data, &len))
|
||||
return NULL;
|
||||
|
||||
if (!len)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue